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

Uploaded Source

Built Distribution

flake8-7.1.0-py2.py3-none-any.whl (57.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: flake8-7.1.0.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flake8-7.1.0.tar.gz
Algorithm Hash digest
SHA256 48a07b626b55236e0fb4784ee69a465fbf59d79eec1f5b4785c3d3bc57d17aa5
MD5 66f4812290b6f0175b809b0742d771db
BLAKE2b-256 4e3464f8a43736d9862ced7dd0ea5c3ed99815b8ff4b826a4f3bfd3a1b0639b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8-7.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 57.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flake8-7.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2e416edcc62471a64cea09353f4e7bdba32aeb079b6e360554c659a122b1bc6a
MD5 c07a3d9c03d453557f4ede3366c2edd7
BLAKE2b-256 dc43d5147aadaa52558e94e024811f2f9543b4bd7203b3a9659eeb5dff9c61b3

See more details on using hashes here.

Supported by

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