Ruff
903 rules ruff@0.17.0
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
RUF053Class with type parameter list inherits from
Generic -
RUF054Indented form feed
-
RUF055Plain string pattern passed to
refunction -
RUF056Avoid providing a falsy fallback to
dict.get()in boolean test positions. The default fallbackNoneis already falsy. -
RUF057Value being rounded is already an integer
-
RUF058itertools.starmapcalled onzipiterable -
RUF059Unpacked variable
{name}is never used -
RUF060Unnecessary membership test on empty collection
-
RUF061Use context-manager form of
pytest.{}() -
RUF063Use
{suggestion}instead of__dict__access -
RUF064Non-octal mode
-
RUF065Unnecessary
oct()conversion when formatting with%s. Use%#oinstead of%s -
RUF066{name}is a property without areturnstatement -
RUF067__init__module should not contain any code -
RUF069Unreliable floating point equality comparison
{left} {operator} {right} -
RUF070Unnecessary assignment to
{name}beforeyield fromstatement -
RUF071os.path.commonprefix()compares strings character-by-character -
RUF072Empty
finallyclause -
RUF073%operator used on an f-string -
RUF074@{outer_decorator}should be placed after@{inner_decorator} -
RUF075Context manager does not catch exceptions
-
RUF077Receiver parameter should not have a default value
-
RUF100Unused {}
-
RUF101{original}is a redirect to{target} -
RUF102Invalid rule code in {}: {}
-
RUF103Invalid suppression comment: {msg}
-
RUF104Suppression comment without matching
#ruff:enablecomment -
RUF105noqacomment used instead ofruff: ignore -
RUF106Rule code used instead of name in suppression comment
-
RUF200Failed to parse pyproject.toml: {message}
-
RUF201Rule code used instead of name in
lint.{selector} -
S101Use of
assertdetected