mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-17 13:57:25 +00:00
[pandas-vet
] Remove pandas-df-variable-name
(PD901
) (#19223)
## Summary closes #7710 ## Test Plan It is is removal so i don't think we have to add tests otherwise i have followed test plan mentioned in contributing.md --------- Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
This commit is contained in:
parent
ee448eab2d
commit
d8e43bf9f7
3 changed files with 3 additions and 6 deletions
|
@ -773,7 +773,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
|
|||
(PandasVet, "013") => (RuleGroup::Stable, rules::pandas_vet::rules::PandasUseOfDotStack),
|
||||
(PandasVet, "015") => (RuleGroup::Stable, rules::pandas_vet::rules::PandasUseOfPdMerge),
|
||||
(PandasVet, "101") => (RuleGroup::Stable, rules::pandas_vet::rules::PandasNuniqueConstantSeriesCheck),
|
||||
(PandasVet, "901") => (RuleGroup::Deprecated, rules::pandas_vet::rules::PandasDfVariableName),
|
||||
(PandasVet, "901") => (RuleGroup::Removed, rules::pandas_vet::rules::PandasDfVariableName),
|
||||
|
||||
// flake8-errmsg
|
||||
(Flake8ErrMsg, "101") => (RuleGroup::Stable, rules::flake8_errmsg::rules::RawStringInException),
|
||||
|
|
|
@ -4,9 +4,9 @@ use ruff_text_size::Ranged;
|
|||
|
||||
use crate::{Violation, checkers::ast::Checker};
|
||||
|
||||
/// ## Deprecated
|
||||
/// ## Removed
|
||||
///
|
||||
/// This rule has been deprecated as it's highly opinionated and overly strict in most cases.
|
||||
/// This rule has been removed as it's highly opinionated and overly strict in most cases.
|
||||
///
|
||||
/// ## What it does
|
||||
/// Checks for assignments to the variable `df`.
|
||||
|
|
3
ruff.schema.json
generated
3
ruff.schema.json
generated
|
@ -3557,9 +3557,6 @@
|
|||
"PD1",
|
||||
"PD10",
|
||||
"PD101",
|
||||
"PD9",
|
||||
"PD90",
|
||||
"PD901",
|
||||
"PERF",
|
||||
"PERF1",
|
||||
"PERF10",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue