question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, Aug 13, 2020

The plan is to remove pylint minimal checkers when we have this #11995. Closing this issue, since this will be addressed as a part of enabling #11995.

0reactions
jacquespeeterscommented, Oct 8, 2021

Any news on this?

Still trouble using flake8 config from pyproject.toml I see this MR https://github.com/microsoft/vscode-python/issues/13321 but looks related to pylinkt and not flake8

Members of my team say it is working fine and to switch to pycharm…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make VSCode honor black excluded files in pyproject ...
If I run black . from the project's root folder that only contains foo.py , I get No Python files are present to...
Read more >
Linting Python in Visual Studio Code
Enable linting​​ To enable linters, open the Command Palette (Ctrl+Shift+P) and select the Python: Select Linter command. The Select Linter command adds "python. ......
Read more >
tidypy - PyPI
A tool that executes a suite of static analysis tools upon a Python project.
Read more >
pyproject.toml - MKDocs Template - GitLab du LIRIS
No need for [build-system] as this pyproject.toml per PEP-518 as this file # serve to a ... Lint python files using pylint bash...
Read more >
Auto-fixing annoyances with Black and Pylint - Medium
Linting is turned on by default in Visual Studio Code. Additionally, if you have a pyproject.toml file in the root directory of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found