[ruff] re and regex calls with unraw string as first argument (RUF039) (#14446)

This commit is contained in:
InSync 2024-11-19 19:44:55 +07:00 committed by GitHub
parent f8c20258ae
commit 5f09d4a90a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 832 additions and 0 deletions

View file

@ -972,6 +972,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
(Ruff, "036") => (RuleGroup::Preview, rules::ruff::rules::NoneNotAtEndOfUnion),
(Ruff, "038") => (RuleGroup::Preview, rules::ruff::rules::RedundantBoolLiteral),
(Ruff, "048") => (RuleGroup::Preview, rules::ruff::rules::MapIntVersionParsing),
(Ruff, "039") => (RuleGroup::Preview, rules::ruff::rules::UnrawRePattern),
(Ruff, "100") => (RuleGroup::Stable, rules::ruff::rules::UnusedNOQA),
(Ruff, "101") => (RuleGroup::Stable, rules::ruff::rules::RedirectedNOQA),