Ruff
903 rules ruff@0.17.0
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
F821Undefined name
{name}. {tip} -
F822Undefined name
{name}in__all__ -
F823Local variable
{name}referenced before assignment -
F841Local variable
{name}is assigned to but never used -
F842Local variable
{name}is annotated but never used -
F901raise NotImplementedshould beraise NotImplementedError -
FA100Add
from __future__ import annotationsto simplify{name} -
FA102Missing
from __future__ import annotations, but uses {reason} -
FAST001FastAPI route with redundant
response_modelargument -
FAST002FastAPI dependency without
Annotated -
FAST003Parameter
{arg_name}appears in route path, but not in{function_name}signature -
FBT001Boolean-typed positional argument in function definition
-
FBT002Boolean default positional argument in function definition
-
FBT003Boolean positional value in function call
-
FIX001Line contains FIXME, consider resolving the issue
-
FIX003Line contains XXX, consider resolving the issue
-
FIX004Line contains HACK, consider resolving the issue
-
FLY002Consider
{expression}instead of string join -
FURB101Path.open()followed byread()can be replaced by{filename}.{suggestion} -
FURB103Path.open()followed bywrite()can be replaced by{filename}.{suggestion} -
FURB105Unnecessary empty string passed to
print -
FURB110Replace ternary
ifexpression withoroperator -
FURB113Use
{suggestion}instead of repeatedly calling{name}.append() -
FURB116Replace
{function_name}call with{display} -
FURB118Use
operator.{operator}instead of defining a {target} -
FURB122Use of
{}.writein a for loop -
FURB129Instead of calling
readlines(), iterate over file object directly -
FURB131Prefer
clearover deleting a full slice -
FURB132Use
{suggestion}instead of check andremove -
FURB136Replace
ifexpression with{min_max}call -
FURB140Use
itertools.starmapinstead of the generator -
FURB142Use of
set.{}()in a for loop