pyproject-flake8

7.0.0 · active · verified Wed Apr 15

pyproject-flake8 (`pflake8`) is a wrapper that monkey-patches Flake8 to enable configuration through `pyproject.toml`. It addresses Flake8's lack of native `pyproject.toml` support by providing a minimal solution to consolidate project configuration. The current version is 7.0.0, and its release cycle is closely tied to the `flake8` releases it supports, with explicit version pinning for stability.

Warnings

Install

Imports

Quickstart

After installation, create a `pyproject.toml` file in your project's root directory and define your Flake8 configuration under the `[tool.flake8]` section. Then, simply execute `pflake8` instead of `flake8` from your command line to lint your code using the specified `pyproject.toml` settings.

# 1. Install pyproject-flake8
pip install pyproject-flake8

# 2. Create a pyproject.toml file in your project root
#    (Example content below)
# [tool.flake8]
# max-line-length = 88
# extend-ignore = ["E203", "W503"]
# exclude = ["venv", ".git", "__pycache__"]

# 3. Run pflake8 instead of flake8
pflake8 your_module.py your_package/

view raw JSON →