Ruff
903 rules ruff@0.17.0
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
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 -
PD004.notnais preferred to.notnull; functionality is equivalent -
PD007.ixis deprecated; use more explicit.locor.iloc -
PD008Use
.locinstead of.at. If speed is important, use NumPy. -
PD009Use
.ilocinstead of.iat. If speed is important, use NumPy. -
PD010.pivot_tableis preferred to.pivotor.unstack; provides same functionality -
PD011Use
.to_numpy()or.arrayinstead of.values -
PD012Use
.read_csvinstead of.read_tableto read CSV files -
PD013.meltis preferred to.stack; provides same functionality -
PD015Use
.mergemethod instead ofpd.mergefunction. They have equivalent functionality. -
PD101Using
series.nunique()for checking that a series is constant is inefficient -
PERF101Do not cast an iterable to
listbefore iterating over it -
PERF102When using only the {subset} of a dict use the
{subset}()method -
PERF203try-exceptwithin a loop incurs performance overhead -
PERF401Use {message_str} to create a transformed list
-
PERF402Use
listorlist.copyto create a copy of a list -
PERF403Use a dictionary comprehension instead of {modifier} for-loop
-
PGH003Use specific rule codes when ignoring type issues
-
PGH004Use specific rule codes when using
noqa -
PGH005Mock method should be called:
{name} -
PIE790Unnecessary
passstatement -
PIE794Class field
{name}is defined multiple times -
PIE796Enum contains duplicate value:
{value} -
PIE800Unnecessary spread
** -
PIE804Unnecessary
dictkwargs