Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
F541f-string without any placeholders
-
F601Dictionary key literal
{name}repeated -
F602Dictionary key
{name}repeated -
F621Too many expressions in star-unpacking assignment
-
F622Two starred expressions in assignment
-
F631Assert test is a non-empty tuple, which is always
True -
F632Use
==to compare constant literals -
F633Use of
>>is invalid withprintfunction -
F634If test is a tuple, which is always
True -
F701breakoutside loop -
F702continuenot properly in loop -
F704{keyword}statement outside of a function -
F706returnstatement outside of a function/method -
F707An
exceptblock as not the last exception handler -
F722Syntax error in forward annotation: {parse_error}
-
F811Redefinition of unused
{name}from {row} -
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}