mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
[Ruff 0.5] Stabilise manual-dict-comprehension
(PERF403
) (#12045)
This commit is contained in:
parent
8cc96d7868
commit
c7b2f2b788
2 changed files with 1 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -1486,7 +1486,6 @@ mod tests {
|
|||
const PREVIEW_RULES: &[Rule] = &[
|
||||
Rule::IsinstanceTypeNone,
|
||||
Rule::IfExprMinMax,
|
||||
Rule::ManualDictComprehension,
|
||||
Rule::ReimplementedStarmap,
|
||||
Rule::SliceCopy,
|
||||
Rule::TooManyPublicMethods,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue