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 anthony sottile and Ian Cordasco

Project details


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-7.1.2.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

flake8-7.1.2-py2.py3-none-any.whl (57.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: flake8-7.1.2.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for flake8-7.1.2.tar.gz
Algorithm Hash digest
SHA256 c586ffd0b41540951ae41af572e6790dbd49fc12b3aa2541685d253d9bd504bd
MD5 8dcf9ab9ebb5d778cf510882e719db5e
BLAKE2b-256 58163f2a0bb700ad65ac9663262905a025917c020a3f92f014d2ba8964b4602c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8-7.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 57.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for flake8-7.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1cbc62e65536f65e6d754dfe6f1bada7f5cf392d6f5db3c2b85892466c3e7c1a
MD5 0a5b4b8eb13916499334e42120d395fe
BLAKE2b-256 35f808d37b2cd89da306e3520bd27f8a85692122b42b56c0c2c3784ff09c022f

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page