Ruff
903 rules ruff@0.17.0
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
PIE807Prefer
{container}over useless lambda -
PIE808Unnecessary
startargument inrange -
PIE810Call
{attr}once with atuple -
PLC0105{kind}name "{param_name}" does not reflect its {variance}; consider renaming it to "{replacement_name}" -
PLC0131{kind}cannot be both covariant and contravariant -
PLC0132{kind}name{param_name}does not match assigned variable name{var_name} -
PLC0205Class
__slots__should be a non-string iterable -
PLC0206Extracting value from dictionary without calling
.items() -
PLC0207String is split more times than necessary
-
PLC0208Use a sequence type instead of a
setwhen iterating over values -
PLC0415importshould be at the top-level of a file -
PLC1802len({expression})used as condition without comparison -
PLC1901{existing}can be simplified to{replacement}as an empty string is falsey -
PLC2401{kind} name
{name}contains a non-ASCII character -
PLC2403Module alias
{name}contains a non-ASCII character -
PLC2801Unnecessary dunder call to
{method}. {replacement}. -
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