mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-22 17:43:09 +08:00
239 B
239 B
What it does
Checks for references to names that are not defined.
Why is this bad?
Using an undefined variable will raise a NameError at runtime.
Example
# NameError: name 'x' is not defined
print(x) # error