mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
[ruff
] re
and regex
calls with unraw string as first argument (RUF039
) (#14446)
This commit is contained in:
parent
f8c20258ae
commit
5f09d4a90a
11 changed files with 832 additions and 0 deletions
|
@ -1281,6 +1281,7 @@ impl<'a> SemanticModel<'a> {
|
|||
"pandas" => self.seen.insert(Modules::PANDAS),
|
||||
"pytest" => self.seen.insert(Modules::PYTEST),
|
||||
"re" => self.seen.insert(Modules::RE),
|
||||
"regex" => self.seen.insert(Modules::REGEX),
|
||||
"six" => self.seen.insert(Modules::SIX),
|
||||
"subprocess" => self.seen.insert(Modules::SUBPROCESS),
|
||||
"tarfile" => self.seen.insert(Modules::TARFILE),
|
||||
|
@ -1858,6 +1859,7 @@ bitflags! {
|
|||
const MARKUPSAFE = 1 << 23;
|
||||
const FLASK = 1 << 24;
|
||||
const ATTRS = 1 << 25;
|
||||
const REGEX = 1 << 26;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue