add new rules to DEFAULT_SELECTORS

This commit is contained in:
Brent Westbrook 2025-10-02 08:56:47 -04:00
parent 1c5a9681a5
commit cf0d026b41
1 changed files with 11 additions and 0 deletions

View File

@ -369,6 +369,17 @@ pub const DEFAULT_SELECTORS: &[RuleSelector] = &[
prefix: RuleCodePrefix::Pycodestyle(codes::Pycodestyle::E9), prefix: RuleCodePrefix::Pycodestyle(codes::Pycodestyle::E9),
redirected_from: None, redirected_from: None,
}, },
// Additionally include rules that will correspond to CPython errors in the future:
// - B012 is a syntax warning in 3.14 and will become an error in the future
// - PYI057 reports deprecated members of the standard library
RuleSelector::Rule {
prefix: RuleCodePrefix::Flake8Bugbear(codes::Flake8Bugbear::_012),
redirected_from: None,
},
RuleSelector::Rule {
prefix: RuleCodePrefix::Flake8Pyi(codes::Flake8Pyi::_057),
redirected_from: None,
},
]; ];
pub const TASK_TAGS: &[&str] = &["TODO", "FIXME", "XXX"]; pub const TASK_TAGS: &[&str] = &["TODO", "FIXME", "XXX"];