Skip to main content

Flake8 plugin that allows specifying config in pyproject.toml.

Project description

flake8-pep518

Flake8 plugin that allows specifying config in pyproject.toml.

There are a lot of projects that do essentially the same thing, but only this one doesn't make you change the command. Also, it's deadly simple:

pip install flake8-pep518

And that's it!

Usage

Install the plugin with the command above and move your Flake8 config to pyproject.toml.

[flake8]
ignore = E231, E241
per-file-ignores =
    __init__.py:F401
max-line-length = 88
count = true

Rename [flake8] section to [tool.flake8] and convert everything else to TOML format.

[tool.flake8]
ignore = ['E231', 'E241']
per-file-ignores = [
    '__init__.py:F401',
]
max-line-length = 88
count = true

Run Flake8 as usuall.

flake8

Inspiration

Inspired by Flake8, Flake9, FlakeHeaven and Flake8-pyproject.

License

flake8-pep518 is licensed under the MIT. Please see License.md for more information.

Project details


Download files

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

Source Distribution

flake8-pep518-0.2.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

flake8_pep518-0.2.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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