Skip to content

Commit d8e43bf

Browse files
CodeMan62ntBre
andcommitted
[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>
1 parent ee448ea commit d8e43bf

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

crates/ruff_linter/src/codes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
773773
(PandasVet, "013") => (RuleGroup::Stable, rules::pandas_vet::rules::PandasUseOfDotStack),
774774
(PandasVet, "015") => (RuleGroup::Stable, rules::pandas_vet::rules::PandasUseOfPdMerge),
775775
(PandasVet, "101") => (RuleGroup::Stable, rules::pandas_vet::rules::PandasNuniqueConstantSeriesCheck),
776-
(PandasVet, "901") => (RuleGroup::Deprecated, rules::pandas_vet::rules::PandasDfVariableName),
776+
(PandasVet, "901") => (RuleGroup::Removed, rules::pandas_vet::rules::PandasDfVariableName),
777777

778778
// flake8-errmsg
779779
(Flake8ErrMsg, "101") => (RuleGroup::Stable, rules::flake8_errmsg::rules::RawStringInException),

crates/ruff_linter/src/rules/pandas_vet/rules/assignment_to_df.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use ruff_text_size::Ranged;
44

55
use crate::{Violation, checkers::ast::Checker};
66

7-
/// ## Deprecated
7+
/// ## Removed
88
///
9-
/// This rule has been deprecated as it's highly opinionated and overly strict in most cases.
9+
/// This rule has been removed as it's highly opinionated and overly strict in most cases.
1010
///
1111
/// ## What it does
1212
/// Checks for assignments to the variable `df`.

ruff.schema.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)