Skip to content

Commit e9bfdfd

Browse files
authored
[ruff] Stabilize if-key-in-dict-del (RUF051) (#16658)
Summary -- Stabilizes RUF051. The tests and docs looked good. Test Plan -- 1 closed documentation issue from 4 days after the rule was added and 1 typo fix from the same day it was added, but no other issues or PRs.
1 parent 7585d43 commit e9bfdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff_linter/src/codes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
10051005
(Ruff, "047") => (RuleGroup::Preview, rules::ruff::rules::NeedlessElse),
10061006
(Ruff, "048") => (RuleGroup::Stable, rules::ruff::rules::MapIntVersionParsing),
10071007
(Ruff, "049") => (RuleGroup::Preview, rules::ruff::rules::DataclassEnum),
1008-
(Ruff, "051") => (RuleGroup::Preview, rules::ruff::rules::IfKeyInDictDel),
1008+
(Ruff, "051") => (RuleGroup::Stable, rules::ruff::rules::IfKeyInDictDel),
10091009
(Ruff, "052") => (RuleGroup::Preview, rules::ruff::rules::UsedDummyVariable),
10101010
(Ruff, "053") => (RuleGroup::Preview, rules::ruff::rules::ClassWithMixedTypeVars),
10111011
(Ruff, "054") => (RuleGroup::Preview, rules::ruff::rules::IndentedFormFeed),

0 commit comments

Comments
 (0)