mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-28 23:43:53 +00:00
[ruff-0.8] [ruff
] Stabilise unsorted-dunder-all
and unsorted-dunder-slots
(#14468)
## Summary These rules were implemented in January, have been very stable, and have no open issues about them. They were highly requested by the community prior to being implemented. Let's stabilise them! ## Test Plan Ecosystem check on this PR.
This commit is contained in:
parent
70d9c90827
commit
aa7ac2ce0f
2 changed files with 3 additions and 3 deletions
|
@ -961,8 +961,8 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
|
|||
(Ruff, "019") => (RuleGroup::Stable, rules::ruff::rules::UnnecessaryKeyCheck),
|
||||
(Ruff, "020") => (RuleGroup::Stable, rules::ruff::rules::NeverUnion),
|
||||
(Ruff, "021") => (RuleGroup::Stable, rules::ruff::rules::ParenthesizeChainedOperators),
|
||||
(Ruff, "022") => (RuleGroup::Preview, rules::ruff::rules::UnsortedDunderAll),
|
||||
(Ruff, "023") => (RuleGroup::Preview, rules::ruff::rules::UnsortedDunderSlots),
|
||||
(Ruff, "022") => (RuleGroup::Stable, rules::ruff::rules::UnsortedDunderAll),
|
||||
(Ruff, "023") => (RuleGroup::Stable, rules::ruff::rules::UnsortedDunderSlots),
|
||||
(Ruff, "024") => (RuleGroup::Stable, rules::ruff::rules::MutableFromkeysValue),
|
||||
(Ruff, "026") => (RuleGroup::Stable, rules::ruff::rules::DefaultFactoryKwarg),
|
||||
(Ruff, "027") => (RuleGroup::Preview, rules::ruff::rules::MissingFStringSyntax),
|
||||
|
|
|
@ -46,7 +46,7 @@ use crate::checkers::ast::Checker;
|
|||
///
|
||||
/// ## Fix safety
|
||||
/// This rule's fix is marked as safe, unless the type annotation contains comments.
|
||||
///
|
||||
///
|
||||
/// ## Options
|
||||
/// - `target-version`
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue