the modular source code checker: pep8 pyflakes and co
Project description
Flake9
Flake9 is a fork of Flake8 that supports reading configuration from a pyproject.toml file, because the authors of Flake8 won’t implement it.
In addition, because it’s 2020, Python 2.7 support has been dropped.
Here’s an example of the pyproject.toml file:
[tool.flake8] ignore = "E203,E266,H106,H904" max-line-length = 88 max-complexity = 25 hang-closing = true
Original Flake8 README
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.
Links
Maintenance
Flake8 was created by Tarek Ziadé and is currently maintained by 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
Built Distribution
File details
Details for the file flake9-3.8.3.post2.tar.gz
.
File metadata
- Download URL: flake9-3.8.3.post2.tar.gz
- Upload date:
- Size: 164.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daefdbfb3d320eb215a4a52c62a4b4a027cbe11d39f5dab30df908b40fce5ba7 |
|
MD5 | 31e4c6022e16d0773d67d48c16924e96 |
|
BLAKE2b-256 | d7e831dea67ef26b11551fa9d33733d14432e48bdca655404076cdc74941265c |
File details
Details for the file flake9-3.8.3.post2-py3-none-any.whl
.
File metadata
- Download URL: flake9-3.8.3.post2-py3-none-any.whl
- Upload date:
- Size: 73.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47dced969a802a8892740bcaa35ae07232709b2ade803c45f48dd03ccb7f825f |
|
MD5 | 5957bd343a5c12a14752f12d067554eb |
|
BLAKE2b-256 | 3c4e230bc6b366dd2217e0b7681b5ace14a3fb4aec12bedb5666f33e19375cc7 |