pytest-pep8
pytest plugin to check PEP8 requirements
What it is and what it does
pytest-pep8 is a pytest plugin that adds PEP8 style checking as a test phase. When you run `py.test --pep8`, it discovers all `.py` files in your project and validates them against PEP8 conventions, reporting whitespace, naming, and formatting violations as test failures. The plugin includes caching (via pytest-cache) to skip files that have not changed since the last check, and supports per-project and per-file configuration via `setup.cfg` or `pytest.ini` to ignore specific error codes or entire files.
The package is abandoned: its last release was 2014-04-27 and it targets Python 2.6, 2.7, 3.3, and 3.4. The underlying pep8 tool and pytest ecosystem have evolved substantially since then, and the project has received no maintenance for 4492 days.
Use it for:
- Enforce PEP8 compliance as part of a pytest test suite in legacy Python 2.x or early Python 3.x projects.
- Configure project-wide or file-specific PEP8 error suppression rules via setup.cfg without modifying source code.
- Cache PEP8 check results to skip re-validation of unchanged files and speed up repeated test runs.
- Run PEP8 checks alongside other pytest tests in a single command.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that integrates PEP8 style checking into your test suite, allowing you to run `py.test --pep8` to automatically discover and validate Python files against PEP8 conventions.
No. The package is abandoned (last release 2014-04-27, 4492 days ago) and targets only Python 2.6, 2.7, 3.3, and 3.4. High install friction and lack of maintenance make this unsuitable for modern projects. Even for legacy Python 2.x codebases, the absence of security updates and compatibility with current tooling makes it a poor choice.
Install
pytest-pep8 on PyPI
pip
pip install pytest-pep8uv
uv add pytest-pep8poetry
poetry add pytest-pep8Installing pytest-pep8
Before you install
High install friction: the package is abandoned (last release 2014-04-27, 4492 days ago) and targets Python 2.6–3.4, making it incompatible with modern Python versions. No runtime dependencies, but the underlying pep8 tool and pytest ecosystem have evolved significantly since maintenance ceased.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution, but the abandoned status means no legal updates or security patches will be issued.
Quickstart
pip install pytest-pep8
py.test --pep8
Classifiers indicate support for Python 2.6, 2.7, 3.3, and 3.4 only; incompatible with later Python versions.
Verify before relying
- Whether the package works with modern pytest versions (documentation shows pytest-2.7.2 from 2014).
- Whether the underlying pep8 checker is compatible with current Python style conventions.
- Whether caching via pytest-cache plugin still functions as documented.
Package facts
| License | MIT license (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 4,492 days since the last release |
| First released | |
| Downloads | 417,618/month — #6,812 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest-pep8-1.0.6.tar.gz
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
pytest-flake8A pytest plugin that runs flake8 PEP8…
permissive · top 15,000 on PyPI
pep8Checks Python code against PEP 8 style…
permissive · top 5,000 on PyPI
pytest-isortA pytest plugin that automatically checks…
permissive · top 15,000 on PyPI
pycodestylepycodestyle checks Python code against PEP 8…
permissive · top 1,000 on PyPI
pytest-timestamperA pytest plugin that prefixes each test output…
unclear · top 15,000 on PyPI
pytest-pylintIntegrates pylint code analysis into pytest,…
permissive · top 15,000 on PyPI
pytest-pspecFormats pytest test output in RSpec-style…
permissive · top 15,000 on PyPI
pytest-onlyA pytest plugin that runs only tests marked…
permissive · top 15,000 on PyPI
pytest-cacheA pytest plugin that persists test state across…
permissive · top 15,000 on PyPI
bashatebashate is a style checker for bash scripts…
permissive · top 15,000 on PyPI