Ruff
903 rules ruff@0.17.0
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
C403Unnecessary list comprehension (rewrite as a set comprehension)
-
C404Unnecessary list comprehension (rewrite as a dict comprehension)
-
C405Unnecessary {kind} literal (rewrite as a set literal)
-
C406Unnecessary {obj_type} literal (rewrite as a dict literal)
-
C408Unnecessary
{kind}()call (rewrite as a literal) -
C409Unnecessary list literal passed to
tuple()(rewrite as a tuple literal) -
C410Unnecessary list literal passed to
list()(remove the outer call tolist()) -
C411Unnecessary
list()call (remove the outer call tolist()) -
C413Unnecessary
{func}()call aroundsorted() -
C414Unnecessary
{inner}()call within{outer}() -
C415Unnecessary subscript reversal of iterable within
{func}() -
C416Unnecessary {kind} comprehension (rewrite using
{kind}()) -
C417Unnecessary
map()usage (rewrite using a {object_type}) -
C418Unnecessary dict {kind} passed to
dict()(remove the outer call todict()) -
C419Unnecessary list comprehension
-
C420Unnecessary dict comprehension for iterable; use
dict.fromkeysinstead -
COM818Trailing comma on bare tuple prohibited
-
COM819Trailing comma prohibited
-
D201No blank lines allowed before function docstring (found {num_lines})
-
D202No blank lines allowed after function docstring (found {num_lines})
-
D2041 blank line required after class docstring
-
D206Docstring should be indented with spaces, not tabs
-
D207Docstring is under-indented
-
D208Docstring is over-indented
-
D209Multi-line docstring closing quotes should be on a separate line
-
D210No whitespaces allowed surrounding docstring text
-
D211No blank lines allowed before class docstring
-
D212Multi-line docstring summary should start at the first line
-
D214Section is over-indented ("{name}")
-
D215Section underline is over-indented ("{name}")
-
D300Use triple double quotes
""" -
D301Use
r"""if any backslashes in a docstring