skillfed

pytest-pep8

pytest plugin to check PEP8 requirements

pytest-pep8 v1.0.6 417.6K downloads/30d#6,812 on PyPI
Permissive license MIT license Abandoned released

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-pep8

uv

uv add pytest-pep8

poetry

poetry add pytest-pep8

Installing 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

Programming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4

Tags

pytest pep8 style checkingcode style linting pluginpep8 compliance testingpython style guide enforcementpytest code quality checkspep8 error detectionautomated style validation
legacyabandoned

More Quality Assurance packages