Skip to content

VS Code does not honor pylint pyproject.toml file under default settings #13321

@danrneal

Description

@danrneal

Environment data

  • VS Code version: 1.47.3
  • Extension version (available under the Extensions sidebar): 2020.7.96456
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: pylint 2.5.3
  • Value of the python.languageServer setting: default / Jedi

Expected behaviour

Under the default settings pyproject.toml, setup.cfg, or .pylintrc file configs would be applied

Actual behaviour

These settings not applied unless Pylint Use Minimal Checkers is unchecked or explicitly set to false

Steps to reproduce:

pyproject.toml

[tool.pylint.messages_control]
disable = "undefined-variable"

And then save a python variable with an undefined variable and you will see the lint error despite the message being disabled in the pyproject.toml file

Metadata

Metadata

Assignees

Labels

area-lintingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions