Pylance shows linting errors from excluded folders #1883
-
AboutI use a local Related Config[tool.pyright]
include = ["uprate"]
exclude = ["docs", ".venv", ".git", "**/__pycache__", ".mypy_cache"] Do I need to configure Pylance to use a |
Beta Was this translation helpful? Give feedback.
Answered by
jakebailey
Sep 28, 2021
Replies: 1 comment
-
"exclude" doesn't mean "don't show diagnostics", it means "don't consider these files as part of the workspace in workspace diagnostic mode". I'm thinking you will want to be using "ignore": https://github.com/microsoft/pyright/blob/main/docs/configuration.md#main-pyright-config-options |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
WizzyGeek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"exclude" doesn't mean "don't show diagnostics", it means "don't consider these files as part of the workspace in workspace diagnostic mode".
I'm thinking you will want to be using "ignore": https://github.com/microsoft/pyright/blob/main/docs/configuration.md#main-pyright-config-options