[pydoclint
] Implement docstring-missing-exception
and docstring-extraneous-exception
(DOC501
, DOC502
) by augustelalande · Pull Request #11471 · astral-sh/ruff (original) (raw)
Summary
These are the first rules implemented as part of #458, but I plan to implement more.
Specifically, this implements docstring-missing-exception
which checks for raised exceptions not documented in the docstring, and docstring-extraneous-exception
which checks for exceptions in the docstring not present in the body.
Test Plan
Test fixtures added for both google and numpy style.