Replies: 1 comment
-
ruff is currently restricted to single-file analysis. Handling this example will require the multi-file analysis and type inference that we're working on in red-knot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's suppose that we have the following code:
scripts.py
running ruff (version: 0.9.7) would return me no errors to that code (All checks passed! message).
But, this code will actually not execute, if it's used by someplace else with no requests reference. Ex:
main.py
So, if i run:
scripts.py: output = 200
main.py: output = NameError: name 'requests' is not defined
Do you have any idea how could i use static check to avoid these errors?
Beta Was this translation helpful? Give feedback.
All reactions