ConfigurationΒΆ

Pylint is highly configurable. There are a lot of options to follow the needs of various projects and a lot of checks to activate if they suit your style.

You can generate a sample configuration file with --generate-toml-config or --generate-rcfile. Every option present on the command line before this will be included in the file.

For example:

pylint --disable=bare-except,invalid-name --class-rgx='[A-Z][a-z]+' --generate-toml-config

In practice, it is often better to create a minimal configuration file which only contains configuration overrides. For all other options, Pylint will use its default values.

Note

The internals that create the configuration files fall back to the default values if no other value was given. This means that some values depend on the interpreter that was used to generate the file. Most notably py-version which defaults to the current interpreter.