Skip to main content

the modular source code checker: pep8 pyflakes and co

Project description

build status pre-commit.ci status Discord

Flake8

Flake8 is a wrapper around these tools:

  • PyFlakes

  • pycodestyle

  • Ned Batchelder’s McCabe script

Flake8 runs all the tools by launching the single flake8 command. It displays the warnings in a per-file, merged output.

It also adds a few features:

  • files that contain this line are skipped:

    # flake8: noqa
  • lines that contain a # noqa comment at the end will not issue warnings.

  • you can ignore specific errors on a line with # noqa: <error>, e.g., # noqa: E234. Multiple codes can be given, separated by comma. The noqa token is case insensitive, the colon before the list of codes is required otherwise the part after noqa is ignored

  • Git and Mercurial hooks

  • extendable through flake8.extension and flake8.formatting entry points

Quickstart

See our quickstart documentation for how to install and get started with Flake8.

Frequently Asked Questions

Flake8 maintains an FAQ in its documentation.

Questions or Feedback

If you have questions you’d like to ask the developers, or feedback you’d like to provide, feel free to use the mailing list: code-quality@python.org

We would love to hear from you. Additionally, if you have a feature you’d like to suggest, the mailing list would be the best place for it.

Maintenance

Flake8 was created by Tarek Ziadé and is currently maintained by Ian Cordasco

Release history Release notifications | RSS feed

This version

5.0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-5.0.4.tar.gz (145.9 kB view details)

Uploaded Source

Built Distribution

flake8-5.0.4-py2.py3-none-any.whl (61.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flake8-5.0.4.tar.gz.

File metadata

  • Download URL: flake8-5.0.4.tar.gz
  • Upload date:
  • Size: 145.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for flake8-5.0.4.tar.gz
Algorithm Hash digest
SHA256 6fbe320aad8d6b95cec8b8e47bc933004678dc63095be98528b7bdd2a9f510db
MD5 db499d255c87bd91cd89f293c6e47685
BLAKE2b-256 ad009808c62b2d529cefc69ce4e4a1ea42c0f855effa55817b7327ec5b75e60a

See more details on using hashes here.

File details

Details for the file flake8-5.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: flake8-5.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 61.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for flake8-5.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7a1cf6b73744f5806ab95e526f6f0d8c01c66d7bbe349562d22dfca20610b248
MD5 2613f337ad0c9d03b741d7ec886005aa
BLAKE2b-256 cfa0b881b63a17a59d9d07f5c0cc91a29182c8e8a9aa2bde5b3b2b16519c02f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page