We’re using pycodestyle to do some linting of Python files.
Please have a look at the latest pycodestyle config for all the configured options.
To see all available configuration options, have a look at the pycodestyle documentation.
We align variable assignment on multiple lines, therefore we’ve to deactivate this check. The rest of the whitespace checks remain active.
Since we’re checking the line length in Pylint, we no longer need to check it here, as we don’t want to specify any exceptions twice.
We follow the new PEP 8 standard and want to break before and not after binary operators.
To use the config in your project, use the following
LINTER_CONFIGS = https://git.confirm.ch/confirm/development-guidelines/raw/master/configs test-pycodestyle: curl -sSfLo tox.ini $(LINTER_CONFIGS)/tox.ini pycodestyle $(SOURCE_DIR)