flake8-docstrings
Extension for flake8 which uses pydocstyle to check docstrings
Decision gist · record as of 2026-08-14
Yes. This is a stable, actively maintained plugin with low install friction and no known vulnerabilities. Install it if you use flake8 and want to enforce docstring conventions without adding a separate linting tool to your workflow. The only caveat is that it hasn't been updated since January 2023, so verify compatibility with your current flake8 and pydocstyle versions before relying on it in new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires flake8 and pydocstyle to be installed; the available docstring conventions depend on your pydocstyle version.
- Low friction: pure Python wheel, only two runtime dependencies (flake8 and pydocstyle).
- Actively maintained as of July 2026, with a stable release history since 2013.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2023-01-25 (1297 days) · last repo commit 2026-07-13 · 159 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,053,070 downloads/mo, #3,337 on PyPI
Alternatives
Verify before relying
pip install flake8-docstrings
flake8 --docstring-convention numpy your_file.py- Whether the package works with the latest versions of flake8 and pydocstyle released after January 2023.
- Performance impact when checking large codebases or projects with many files.
What it is and what it does
flake8-docstrings is a flake8 plugin that brings pydocstyle's docstring validation into the flake8 linting ecosystem. Instead of running pydocstyle separately, you configure it once in your flake8 setup and check docstrings alongside your other code quality rules. It supports multiple docstring conventions—PEP 257 (the default), numpy, and google—and lets you pick which error codes to enforce using flake8's standard --ignore and --select flags.
The package is lightweight and straightforward to integrate: install it, add a configuration line to your flake8 config (or pass --docstring-convention at the command line), and run flake8 as usual. It's useful for teams that want unified linting configuration and developers who prefer a single tool for all style checks rather than managing separate linters.
Use it for
- Enforce numpy-style docstrings in scientific Python projects as part of CI/CD linting.
- Add docstring validation to an existing flake8 setup without changing your workflow.
- Enforce google-style docstrings in projects that prefer that convention over PEP 257.
- Selectively check specific docstring error codes using flake8's --select flag.
- Maintain consistent docstring standards across a team by centralizing the rule in flake8 config.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a stable, actively maintained plugin with low install friction and no known vulnerabilities. Install it if you use flake8 and want to enforce docstring conventions without adding a separate linting tool to your workflow. The only caveat is that it hasn't been updated since January 2023, so verify compatibility with your current flake8 and pydocstyle versions before relying on it in new projects.
Install
flake8-docstrings on PyPI
Before you install
Low friction: pure Python wheel, only two runtime dependencies (flake8 and pydocstyle). Actively maintained as of July 2026, with a stable release history since 2013.
Requires flake8 and pydocstyle to be installed; the available docstring conventions depend on your pydocstyle version.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install flake8-docstrings
flake8 --docstring-convention numpy your_file.py
Verify before relying
- Whether the package works with the latest versions of flake8 and pydocstyle released after January 2023.
- Performance impact when checking large codebases or projects with many files.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesflake8pydocstyle |
| Maintenance | Actively maintained 1,297 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,053,070 / month, #3,337 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: Implementation :: CPython |
Evidence: flake8_docstrings-1.7.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flake8 docstring checker”
- flake8-docstringsIntegrates pydocstyle docstring checking into flake8, allowing you to…
- flake8-rst-docstringsA flake8 plugin that validates Python docstrings as reStructuredText…
- docsigLints Python function and method signatures to ensure their…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also pydocstringformatter · pydocstyle · flake8-rst-docstrings · pydoclint · docformatter · flake8-quotes · docstring-parser · pep8-naming · flake8-commas · flake8-literal