Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
E711Comparison to
Noneshould becond is None -
E712Avoid equality comparisons to
True; use{cond}:for truth checks -
E713Test for membership should be
not in -
E714Test for object identity should be
is not -
E721Use
isandis notfor type comparisons, orisinstance()for isinstance checks -
E722Do not use bare
except -
E731Do not assign a
lambdaexpression, use adef -
E741Ambiguous variable name:
{name} -
E742Ambiguous class name:
{name} -
E743Ambiguous function name:
{name} -
E902{message}
-
EM101Exception must not use a string literal, assign to variable first
-
EM102Exception must not use an f-string literal, assign to variable first
-
EM103Exception must not use a
.format()string directly, assign to variable first -
EXE001Shebang is present but file is not executable
-
EXE002The file is executable but no shebang is present
-
EXE003Shebang should contain
python,pytest, oruv run -
EXE004Avoid whitespace before shebang
-
EXE005Shebang should be at the beginning of the file
-
F401{name}imported but unused; consider usingimportlib.util.find_specto test for availability -
F402Import
{name}from {row} shadowed by loop variable -
F403from {name} import *used; unable to detect undefined names -
F404from __future__imports must occur at the beginning of the file -
F405{name}may be undefined, or defined from star imports -
F406from {name} import *only allowed at module level -
F407Future feature
{name}is not defined -
F501%-format string has invalid format string: {message} -
F502%-format string expected mapping but got sequence -
F503%-format string expected sequence but got mapping -
F504%-format string has unused named argument(s): {message} -
F505%-format string is missing argument(s) for placeholder(s): {message} -
F506%-format string has mixed positional and named placeholders -
F507%-format string has {wanted} placeholder(s) but {got} substitution(s) -
F508%-format string*specifier requires sequence -
F509%-format string has unsupported format character{char} -
F521.formatcall has invalid format string: {message} -
F522.formatcall has unused named argument(s): {message} -
F523.formatcall has unused arguments at position(s): {message} -
F524.formatcall is missing argument(s) for placeholder(s): {message} -
F525.formatstring mixes automatic and manual numbering