Ruff
909 rules ruff@0.17.6
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
UP023cElementTreeis deprecated, useElementTree -
UP024Replace aliased errors with
OSError -
UP025Remove unicode literals from strings
-
UP026mockis deprecated, useunittest.mock -
UP028Replace
yieldoverforloop withyield from -
UP029Unnecessary builtin import:
{import} -
UP030Use implicit references for positional format fields
-
UP031Use format specifiers instead of percent format
-
UP032Use f-string instead of
formatcall -
UP033Use
@functools.cacheinstead of@functools.lru_cache(maxsize=None) -
UP034Avoid extraneous parentheses
-
UP035Import from
{target}instead: {names} -
UP036Version block is outdated for minimum Python version
-
UP037Remove quotes from type annotation
-
UP039Unnecessary parentheses after class definition
-
UP040Type alias
{name}uses {type_alias_method} instead of thetypekeyword -
UP041Replace aliased errors with
TimeoutError -
UP042Class {name} inherits from both
strandenum.Enum -
UP043Unnecessary default type arguments
-
UP044Use
*for unpacking -
UP045Use
X | Nonefor type annotations -
UP046Generic class
{name}usesGenericsubclass instead of type parameters -
UP047Generic function
{name}should use type parameters -
UP048Use
while True:instead ofwhile 1: -
UP049Generic {} uses private type parameters
-
UP050Class
{name}usesmetaclass=type, which is redundant -
UP051Use
@{to}and@abstractmethodinstead of{from} -
UP052Use
{generator}instead of{iterator}for a context manager -
W191Indentation contains tabs
-
W291Trailing whitespace
-
W292No newline at end of file
-
W293Blank line contains whitespace