Skip to main content

the modular source code checker: pep8 pyflakes and co

Project description

build status pre-commit.ci status

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

Download files

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

Source Distribution

flake8-4.0.0.tar.gz (154.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake8-4.0.0-py2.py3-none-any.whl (64.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: flake8-4.0.0.tar.gz
  • Upload date:
  • Size: 154.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for flake8-4.0.0.tar.gz
Algorithm Hash digest
SHA256 b52d27e627676b015340c3b1c72bc9259a6cacc9341712fb8f01ddfaaa2c651a
MD5 21cb2d301221d87a166ccc876a503ea9
BLAKE2b-256 241ae7d61b77955efe0f5aa413625f3e3c2153768f3e0f234de5d0e91b633200

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8-4.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 64.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for flake8-4.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 124554bfd067e04d891258c0208a764b512ca3a94c8a3c06bea56af539dd74db
MD5 3ac33e0765bddd66479c94e1f4361cf9
BLAKE2b-256 0fcc931e8fd88a7730d66ee3b962f954eef1efc9959d618d01574cebf6905dae

See more details on using hashes here.

Supported by

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