flake8
The Flake8 Python linter (https://flake8.pycqa.org/).
Backend: pants.backend.python
Config section: [flake8]
Basic options
args
--flake8-args="[<shell_str>, <shell_str>, ...]"
PANTS_FLAKE8_ARGS
pants.toml
[flake8]
args = [
<shell_str>,
<shell_str>,
...,
]
default:
[]
Arguments to pass directly to Flake8, e.g. --flake8-args="--ignore E123,W456 --enable-extensions H111"
skip
--[no-]flake8-skip
PANTS_FLAKE8_SKIP
pants.toml
[flake8]
skip = <bool>
default:
False
Don't use Flake8 when running /home/josh/work/scie-pants/dist/pants lint
Advanced options
config
--flake8-config=<file_option>
PANTS_FLAKE8_CONFIG
pants.toml
[flake8]
config = <file_option>
default:
None
Path to an INI config file understood by Flake8 (https://flake8.pycqa.org/en/latest/user/configuration.html).
Setting this option will disable [flake8].config_discovery
. Use this option if the config is located in a non-standard location.
config_discovery
--[no-]flake8-config-discovery
PANTS_FLAKE8_CONFIG_DISCOVERY
pants.toml
[flake8]
config_discovery = <bool>
default:
True
If true, Pants will include any relevant config files during runs (.flake8
, flake8
, setup.cfg
, and tox.ini
).
Use [flake8].config
instead if your config is in a non-standard location.