No project description provided
Project description
It’s a Flake8 wrapper to make it cool.
Use only specified plugins, not everything installed.
Manage codes per plugin.
Enable and disable plugins and codes by wildcard.
Make output beautiful.
Show codes for installed plugins.
Show all messages and codes for a plugin.
Check that all required plugins are installed.
Syntax highlighting in messages and code snippets.
Installation
python3 -m pip install --user flakehell
Usage
First of all, let’s create pyproject.toml config:
[tool.flakehell]
exclude = ["example.py"]
format = "grouped"
max_line_length = 90
show_source = true
[tool.flakehell.plugins]
pyflakes = ["+*", "-F401"]
flake8-quotes = ["+*"]
You can specify any flake8 settings in [tool.flakehell].
[tool.flakehell.plugins] contains list of plugins and rules for them.
Show plugins that aren’t installed yet:
flakehell missed
Show installed plugins, used plugins, specified rules, codes prefixes:
flakehell plugins
Show codes and messages for a specific plugin:
flakehell codes pyflakes
Run flake8 against the code:
flakehell lint
This command accepts all the same arguments as Flake8.
Formatters
Formatters make errors output nice. Available formatters:
colored – for humans.
grouped – also colored, but all messages are explicitly grouped by file.
json – no colors, only one json-dict per line for every error.
Also, you can specify show_source = true in the config to show line of source code where error occurred with syntax highlighting.
Colored:
Colored with source code:
Grouped:
Grouped with source code:
JSON:
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 flakehell-0.1.0.tar.gz
.
File metadata
- Download URL: flakehell-0.1.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7abd06e4c220330b45f519f6f1039ea684f48449d2d78da34888483e7007c077 |
|
MD5 | 4c0c951be36f1e6e33e18da0d4703069 |
|
BLAKE2b-256 | 847aebc3bcfdae450912006ed72c56edba073e2a1cfd14ec201cc0413e98c3f7 |
File details
Details for the file flakehell-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: flakehell-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49d937f97758ff680813df4a3f7be2caf061c377c1db7a0100eeac19ff5ee90c |
|
MD5 | 15c54b419a134187389dc6d4ebef3b13 |
|
BLAKE2b-256 | 013513470a178184f25d8b72ddeaaa9ff29365b90e15931355de280e424b71e5 |