docvet 1.14: Parameter Agreement, Reverse Checks, and Trivial Docstring Detection #364
Pinned
Alberto-Codes
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
docvet v1.14.0
Biggest enrichment expansion yet — six new rules focused on docstring truthfulness, not just presence.
Highlights
missing-param-in-docstringandextra-param-in-docstringcompare signatures against Args sections. Supports Google, Sphinx, positional-only (PEP 570), keyword-only, and*args/**kwargsexclusion.extra-raises-in-docstring,extra-yields-in-docstring,extra-returns-in-docstringcatch docstrings claiming behavior the code doesn't exhibit. Uses scope-aware AST walking.def get_user→"""Get user.""").warnings.warn(DeprecationWarning)or@deprecated(PEP 702) without a docstring notice.Returns:with no type when there's no return annotation.__init__with parameters but noArgs:section.Install / Upgrade
Param agreement and reverse checks are on by default. Opt-in rules:
What's Next
Full changelog: https://github.com/Alberto-Codes/docvet/releases/tag/v1.14.0
All reactions