Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
ICN001{name}should be imported as{asname} -
ICN002{name}should not be imported as{asname} -
ICN003Members of
{name}should not be imported explicitly -
INP001File
{filename}is part of an implicit namespace package. Add an__init__.py. -
INT001f-string in plural argument is resolved before function call
-
INT002formatmethod in plural argument is resolved before function call -
INT003printf-style format in plural argument is resolved before function call
-
ISC001Implicitly concatenated string literals on one line
-
ISC002Implicitly concatenated string literals over multiple lines
-
ISC003Explicitly concatenated string should be implicitly concatenated
-
ISC004Unparenthesized implicit string concatenation in collection
-
LOG001Use
logging.getLogger()to instantiate loggers -
LOG002Use
__name__withlogging.getLogger() -
LOG004.exception()call outside exception handlers -
LOG007Use of
logging.exceptionwith falsyexc_info -
LOG009Use of undocumented
logging.WARNconstant -
LOG014exc_info=outside exception handlers -
LOG015{}()call on root logger -
N801Class name
{name}should use CapWords convention -
N802Function name
{name}should be lowercase -
N803Argument name
{name}should be lowercase -
N804First argument of a class method should be named
cls -
N805First argument of a method should be named
self -
N806Variable
{name}in function should be lowercase -
N807Function name should not start and end with
__ -
N811Constant
{name}imported as non-constant{asname} -
N812Lowercase
{name}imported as non-lowercase{asname} -
N813Camelcase
{name}imported as lowercase{asname} -
N814Camelcase
{name}imported as constant{asname} -
N815Variable
{name}in class scope should not be mixedCase -
N816Variable
{name}in global scope should not be mixedCase -
N817CamelCase
{name}imported as acronym{asname} -
N818Exception name
{name}should be named with an Error suffix -
N999Invalid module name: '{name}'
-
NPY001Type alias
np.{type_name}is deprecated, replace with builtin type -
NPY002Replace legacy
np.random.{method_name}call withnp.random.Generator -
NPY003np.{existing}is deprecated; usenp.{replacement}instead -
NPY201np.{existing}will be removed in NumPy 2.0. {migration_guide} -
PD002inplace=Trueshould be avoided; it has inconsistent behavior -
PD003.isnais preferred to.isnull; functionality is equivalent