Is it possible to ignore specific undefined names? #7033
-
First of all, thanks a lot for this great project, it helps me a lot in my work! I use ruff as an extension for VSCode/VSCodium. I work with an ETL tool that support python scripting, so the code will run in that environment instead of my local machine. I typically copy the code locally to be checked with ruff and other tools. That tool provides some modules that are somehow available in the environment, so I don't have to do I could disable the rule undefined-name (F821)# altogether but I still want to catch all other undefined name errors for all other names other than the specific one (in my case My workaround for now is to manually insert |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
theres probably another solution. Visual Studio Code still would NEED to have the module downloaded in order for it to work. If that all is working you'd need to specify what the python requests is going to do. I'd start off with atleast doing something where it would return the result. |
Beta Was this translation helpful? Give feedback.
-
You can use the |
Beta Was this translation helpful? Give feedback.
You can use the
builtins
settings to define additional "environment provided" builtins. See this Playground for an example.