microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.38k stars 28.62k forks source link

Support disabling python linters via configuration setting #226437

Closed Spitfire1900 closed 1 week ago

Spitfire1900 commented 3 weeks ago

As a contributor to multiple python projects I need to be aware of which linters a project uses. Contributions to a project to resolve linting errors for a linter the project does not use are generally not accepted unless they can be associated with a known bug.

The current Python linter docs note:

Linters, if installed, are enabled by default. You can disable them by disabling the extension per workspace.

Remembering to enable/disable linter extensions for a specific workspace This is a much less friendly DX experience than the obsolete

"python.linting.pycodestyleEnabled": false,
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,

configuration that existed previously.

Please provide a way to remark which linters should be enabled in a workspace as a configuration setting if multiple linters are installed simultaneously, i.e. as a disabled section in .vscode/extensions.json or as block in .vscode/settings.json like:

 "[python]": {
        "editor.enabledLinters": [
            "charliermarsh.ruff",
            "ms-python.pylint"
        ]
}
Spitfire1900 commented 3 weeks ago

This is a similar feature request to https://github.com/microsoft/vscode/issues/40239

sandy081 commented 1 week ago

Please file the issue against the python extension.

Spitfire1900 commented 3 days ago

https://github.com/microsoft/vscode-python/issues/22607 is the associated vscode-python issue.