Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
SIM401Use
{contents}instead of anifblock -
SIM905Consider using a list literal instead of
str.{} -
SIM910Use
{expected}instead of{actual} -
SIM911Use
{expected}instead of{actual} -
SLF001Private member accessed:
{access} -
SLOT000Subclasses of
strshould define__slots__ -
SLOT001Subclasses of
tupleshould define__slots__ -
SLOT002Subclasses of {namedtuple_kind} should define
__slots__ -
T100Trace found:
{name}used -
T201printfound -
T203pprintfound -
TC001Move application import
{}into a type-checking block -
TC002Move third-party import
{}into a type-checking block -
TC003Move standard library import
{}into a type-checking block -
TC004Move import
{qualified_name}out of type-checking block. Import is used for more than type hinting. -
TC005Found empty type-checking block
-
TC006Add quotes to type expression in
typing.cast() -
TC007Add quotes to type alias
-
TC008Remove quotes from type alias
-
TC010Invalid string member in
X | Y-style union type -
TD001Invalid TODO tag:
{tag} -
TD005Missing issue description after
TODO -
TD006Invalid TODO capitalization:
{tag}should beTODO -
TD007Missing space after colon in TODO
-
TID251{name}is banned: {message} -
TID252Prefer absolute imports over relative imports from parent modules
-
TID253{name}is banned at the module level -
TID254{name}should be imported lazily -
TID255Lazy import
{name}is resolved immediately -
TRY002Create your own exception
-
TRY003Avoid specifying long messages outside the exception class
-
TRY004Prefer
TypeErrorexception for invalid type -
TRY201Use
raisewithout specifying exception name -
TRY203Remove exception handler; error is immediately re-raised
-
TRY300Consider moving this statement to an
elseblock -
TRY301Abstract
raiseto an inner function -
TRY400Use
logging.exceptioninstead oflogging.error -
TRY401Redundant exception object included in
logging.exceptioncall -
UP001__metaclass__ = typeis implied -
UP003Use
{}instead oftype(...)