--- id: pydoclint version: "0.9.1" license: MIT license_treatment: permissive maintenance: active --- # pydoclint — A Python docstring linter that checks arguments, returns, yields, and raises sections License: permissive · Maintenance: active · Downloads: 872.4K/mo ## What it is and what it does Pydoclint is a command-line docstring linter that parses function signatures and implementations, then checks whether the docstring's documented sections (parameters, return values, exceptions) are accurate and complete. It supports three major docstring conventions—numpy, Google, and Sphinx—and can run as a standalone tool, a flake8 plugin, or a pre-commit hook. The package is designed for speed and can process large codebases in seconds rather than minutes or hours. The linter detects mismatches between what a function actually does and what its docstring claims: missing or undocumented parameters, incorrect return type documentation, and unhandled exceptions. It complements pydocstyle (which checks formatting and structure) rather than replacing it. Configuration is flexible, supporting inline suppression via `# noqa` comments, baseline generation for gradual adoption, and multiple style options. The tool requires Python 3.10 or higher and depends on click, docstring_parser_fork, and tomli. Use it for: - Enforce consistent docstring quality across a team's codebase by catching mismatches between function signatures and their documentation. - Integrate docstring linting into CI/CD pipelines via flake8 or pre-commit hooks to catch documentation drift before code review. - Gradually adopt strict docstring standards in legacy projects using the baseline feature to log existing violations without blocking new commits. - Validate that all function parameters, return values, and exceptions are properly documented in numpy, Google, or Sphinx style. - Speed up large-scale docstring audits on projects like numpy or scikit-learn where traditional linters would take hours. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Pydoclint is a Python docstring linter that validates whether docstring sections (arguments, returns, raises) match the function signature and implementation, supporting numpy, Google, and Sphinx styles. Yes. Pydoclint is actively maintained, has no known vulnerabilities, installs with minimal friction, and is permissively licensed. It fills a clear need for fast, accurate docstring linting across multiple styles. Install it if your team values documentation consistency and wants to catch docstring-signature mismatches automatically; the speed advantage over alternatives like darglint is substantial for large codebases. ## Install pip install pydoclint uv add pydoclint poetry add pydoclint ## Installing pydoclint Before you install: Low install friction with three lightweight runtime dependencies (click, docstring_parser_fork, tomli). Active maintenance with a release 42 days ago and 220 repository stars. Requires Python 3.10 or higher. License in practice: MIT license (permissive) allows use in commercial and private projects with minimal restrictions; attribution is required but no copyleft obligations apply. Quickstart: pip install pydoclint pydoclint # Or as a flake8 plugin: pip install pydoclint[flake8] flake8 --select=DOC Requires Python 3.10 or higher; Python 3.8 and 3.9 are not supported. Verify before relying: - Whether the package's claimed performance advantage (thousands of times faster than darglint) holds across typical project sizes and configurations. - How well the three supported docstring styles (numpy, Google, Sphinx) cover real-world codebases and whether style deviations are acceptable for your team. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 872.4K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags docstring linter, check docstring matches signature, validate function documentation, docstring style checker, numpy google sphinx docstring, docstring quality tool, fast docstring linter, docstring-linting, code-quality, ci-cd-ready [View on SkillFed](https://skillfed.io/packages/pydoclint) · [View on PyPI](https://pypi.org/project/pydoclint/)