VS Code does not honor pylint pyproject.toml file under default settings
See original GitHub issueEnvironment 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:
- Created 3 years ago
- Reactions:5
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 flake8Members of my team say it is working fine and to switch to pycharm…