Ruff
903 rules ruff@0.17.0
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
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} -
PLR0133Two constants compared in a comparison, consider replacing
{left_constant} {op} {right_constant} -
PLR0202Class method defined without decorator
-
PLR0203Static method defined without decorator
-
PLR0206Cannot have defined parameters for properties
-
PLR0402Use
from {module} import {name}in lieu of alias -
PLR0904Too many public methods ({methods} > {max_methods})
-
PLR0914Too many local variables ({current_amount} > {max_amount})
-
PLR0916Too many Boolean expressions ({expressions} > {max_expressions})