Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
PLC3002Lambda expression called directly. Execute the expression inline instead.
-
PLE0100__init__method is a generator -
PLE0101Explicit return in
__init__ -
PLE0115Name
{name}is bothnonlocalandglobal -
PLE0116continuenot supported insidefinallyclause -
PLE0117Nonlocal name
{name}found without binding -
PLE0118Name
{name}is used prior to global declaration on {row} -
PLE0237Attribute
{name}is not defined in class's__slots__ -
PLE0241Duplicate base
{base}for class{class} -
PLE0302The special method
{}expects {}, {} {} given -
PLE0303__len__does not return a non-negative integer -
PLE0304__bool__does not returnbool -
PLE0305__index__does not return an integer -
PLE0307__str__does not returnstr -
PLE0308__bytes__does not returnbytes -
PLE0309__hash__does not return an integer -
PLE0604Invalid object in
__all__, must contain only strings -
PLE0605Invalid format for
__all__, must betupleorlist -
PLE0643Expression is likely to raise
IndexError -
PLE0704Bare
raisestatement is not inside an exception handler -
PLE1132Repeated keyword argument:
{duplicate_keyword} -
PLE1141Unpacking a dictionary in iteration without calling
.items() -
PLE1142awaitshould be used within an async function -
PLE1205Too many arguments for
loggingformat string -
PLE1206Not enough arguments for
loggingformat string -
PLE1300Unsupported format character '{format_char}'
-
PLE1307Format type does not match argument type
-
PLE1310String
{strip}call contains duplicate characters (did you mean{removal}?) -
PLE1507Invalid type for initial
os.getenvargument; expectedstr -
PLE1519@singledispatchdecorator should not be used on methods -
PLE1520@singledispatchmethoddecorator should not be used on non-method functions -
PLE1700yield fromstatement in async function; useasync forinstead -
PLE2502Contains control characters that can permit obfuscated code
-
PLE2510Invalid unescaped character backspace, use "\b" instead
-
PLE2512Invalid unescaped character SUB, use "\x1a" instead
-
PLE2513Invalid unescaped character ESC, use "\x1b" instead
-
PLE2514Invalid unescaped character NUL, use "\0" instead
-
PLE2515Invalid unescaped character zero-width-space, use "\u200B" instead
-
PLE4703Iterated set
{name}is modified within theforloop -
PLR0124Name compared with itself, consider replacing
{actual}