We’re using Pylint to do most of the linting of Python files.
Please have a look at the latest Pylint config for all the configured options.
To see all available configuration options, have a look at the Pylint documentation.
Because of variable-assignment-alignment, we’ve to disable this check.
Unfortunately, Pylint only allows us to disable the complete whitespaces check and not only the variable assignment checks. However, we use pycodestyle to check the other assignments.
We’re using isort for import checks and Pylint will fail, as we’ve separate sections in isort.
We’re deactivating the check for duplicate code, because this triggers too many times. This is quite common in Django projects.
To use the config in your project, use the following
LINTER_CONFIGS = https://git.confirm.ch/confirm/development-guidelines/raw/master/configs test-pylint: curl -sSfLo .pylintrc $(LINTER_CONFIGS)/pylintrc pylint $(SOURCE_DIR)