Python docstring style checker for PEP 257 compliance
72
A command-line utility that runs docstring linting on Python source files while allowing decorator- and property-aware behavior.
--skip-decorators <regex>, docstring checks ignore any function or method decorated with a name matching the pattern; other lint failures still appear with file and line references. @test--property-decorators <names> ensures methods tagged with those decorators are treated as properties so summary-line mood checks match property expectations and do not enforce imperative tone. @test--allow-self-init, a __init__(self) without extra parameters is exempt from missing-docstring violations; without the flag the same file reports the missing docstring. @test@generates
lint-docstrings entry point accepting one or more file or directory paths.--skip-decorators, --property-decorators (comma-separated), --allow-self-init, and --explain.0 on a clean run, 1 when lint violations are found, and 2 on invalid options.--explain is present include rule explanations in the output.def main(argv: list[str] | None = None) -> int:
...Docstring linting engine used by the CLI.
Install with Tessl CLI
npx tessl i tessl/pypi-pep257evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10