How to disable check for ruff in the virtual envs site-packages? #5509
-
I don't know why but ruff is checking my virtuals envs packages also for linting or errors which is for my case not wanted or I don't know if anybody does. Is there any way to make it stop ?
TIA |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Can you add exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"./epay/tests",
".pyenv"
] We can also add it to our defaults. |
Beta Was this translation helpful? Give feedback.
-
For those who are using ruff plugin for vscode and trying to solve this problem. Try to set the pyproject file for the plugin as below snapshot. |
Beta Was this translation helpful? Give feedback.
-
I use binhex-code-server on unraid and adding this arg in the extension settings fixed the ruff "Problems" for me:
|
Beta Was this translation helpful? Give feedback.
Can you add
.pyenv
as an exclusion?We can also add it to our defaults.