The default Pylint rules used in the extension have been improved to reduce noise in the editor. By default, only errors and warnings are shown that are useful for catching coding mistakes and are likely to result in runtime exceptions. We have disabled the style rules and most of the warnings, resulting in less noise in the editor when using the default settings. You can view the default ruleset definition in our Linting Python in VS Code documentation.

The default Pylint options activate all linter rules (also known as checkers), including many style warnings. This meant that previously many warnings were shown complaining about the names of variables and functions by default. While these style warnings can be useful for some code bases, they can also add a lot of unnecessary noise for others. For example, the below warning tells me that I should be using uppercase for the “urlpatterns” variable, which goes against the coding style being used in this codebase:

You can customize which rules are enabled to match the style used in your codebase by:

Adding a .pylintrc file in your workspace, e.g. in a specific folder with .py files or in the workspace root.

Modifying the python.linting.pylintArgs setting.

Disabling our ruleset by setting python.linting.pylintUseMinimalCheckers to false, which will enable Pylint’s own default rules.

Commands for Configuring Linting