pytest-flake8
pytest plugin to check FLAKE8 requirements
Decision gist · record as of 2026-08-14
Yes. Low friction to install, actively maintained, no known vulnerabilities, and permissive licensing. Use it if you want PEP8 compliance checks as part of your pytest suite and prefer integrated tooling over separate linting steps.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; flake8 and pytest must be installed in your test environment.
- Low install friction with only two runtime dependencies (flake8 and pytest).
- Actively maintained as of April 2026, with stable production status since its initial release.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use and modify it freely in commercial or private projects with minimal restrictions.
last release 2024-11-09 (643 days) · last repo commit 2026-04-13 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 506,312 downloads/mo, #6,287 on PyPI
Alternatives
Verify before relying
pip install pytest-flake8
pytest --flake8- Whether optional flake8 plugins are auto-detected and applied without manual configuration
- How caching behavior interacts with CI/CD pipelines and whether cache-clear is needed regularly
What it is and what it does
pytest-flake8 is a pytest plugin that integrates PEP8 style checking directly into your test suite. When you run pytest with the --flake8 flag, it automatically discovers all .py files in your project and checks them against flake8 rules, reporting style violations as test failures. This lets you enforce code quality standards alongside your functional tests.
The plugin caches results and only re-checks modified files by default, which speeds up repeated test runs. You can configure which errors or warnings to ignore on a per-project or per-file basis using standard flake8 configuration. If you have flake8 plugins installed, they are automatically applied without additional setup.
Use it for
- Enforce PEP8 compliance in CI/CD pipelines by failing builds when style violations are detected
- Run code quality checks alongside unit tests to catch style issues early in development
- Configure project-specific or file-specific style rules using flake8's standard configuration
- Integrate linting into existing pytest workflows without adding separate tool invocations
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low friction to install, actively maintained, no known vulnerabilities, and permissive licensing. Use it if you want PEP8 compliance checks as part of your pytest suite and prefer integrated tooling over separate linting steps.
Install
pytest-flake8 on PyPI
Before you install
Low install friction with only two runtime dependencies (flake8 and pytest). Actively maintained as of April 2026, with stable production status since its initial release.
Requires Python 3.9 or later; flake8 and pytest must be installed in your test environment.
License in practice
Licensed under MIT (permissive), so you can use and modify it freely in commercial or private projects with minimal restrictions.
Quickstart
pip install pytest-flake8
pytest --flake8
Verify before relying
- Whether optional flake8 plugins are auto-detected and applied without manual configuration
- How caching behavior interacts with CI/CD pipelines and whether cache-clear is needed regularly
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesflake8pytest |
| Maintenance | Actively maintained 643 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 506,312 / month, #6,287 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software DevelopmentTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: Testing |
Evidence: pytest_flake8-1.3.0-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 › “python linting in tests”
- pytest-flake8A pytest plugin that runs flake8 PEP8 compliance checks on Python…
- pytest-pylintIntegrates pylint code analysis into pytest, allowing you to run…
- pytest-blackA pytest plugin that runs black format checks on your code during…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also pytest-mypy · pytest-pep8 · flake8 · pep8-naming · flake8-polyfill · flake8-tuple · pep8 · flake8-print · pycodestyle · cement