Skip to content

Commit

Permalink
[Ruff 0.5] Stabilise manual-dict-comprehension (PERF403) (#12045)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Jun 26, 2024
1 parent 3e33b0e commit 0ef31e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion crates/ruff_linter/src/codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
(Perflint, "203") => (RuleGroup::Stable, rules::perflint::rules::TryExceptInLoop),
(Perflint, "401") => (RuleGroup::Stable, rules::perflint::rules::ManualListComprehension),
(Perflint, "402") => (RuleGroup::Stable, rules::perflint::rules::ManualListCopy),
(Perflint, "403") => (RuleGroup::Preview, rules::perflint::rules::ManualDictComprehension),
(Perflint, "403") => (RuleGroup::Stable, rules::perflint::rules::ManualDictComprehension),

// flake8-fixme
(Flake8Fixme, "001") => (RuleGroup::Stable, rules::flake8_fixme::rules::LineContainsFixme),
Expand Down
1 change: 0 additions & 1 deletion crates/ruff_workspace/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,6 @@ mod tests {
const PREVIEW_RULES: &[Rule] = &[
Rule::IsinstanceTypeNone,
Rule::IfExprMinMax,
Rule::ManualDictComprehension,
Rule::ReimplementedStarmap,
Rule::SliceCopy,
Rule::TooManyPublicMethods,
Expand Down

0 comments on commit 0ef31e2

Please sign in to comment.