mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 16:10:17 +00:00
[flake8-markupsafe] Adds Implementation for MS001 via RUF035 (#14224)
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
b8a65182dd
commit
f82ee8ea59
16 changed files with 321 additions and 1 deletions
|
@ -1272,7 +1272,9 @@ impl<'a> SemanticModel<'a> {
|
|||
"datetime" => self.seen.insert(Modules::DATETIME),
|
||||
"django" => self.seen.insert(Modules::DJANGO),
|
||||
"fastapi" => self.seen.insert(Modules::FASTAPI),
|
||||
"flask" => self.seen.insert(Modules::FLASK),
|
||||
"logging" => self.seen.insert(Modules::LOGGING),
|
||||
"markupsafe" => self.seen.insert(Modules::MARKUPSAFE),
|
||||
"mock" => self.seen.insert(Modules::MOCK),
|
||||
"numpy" => self.seen.insert(Modules::NUMPY),
|
||||
"os" => self.seen.insert(Modules::OS),
|
||||
|
@ -1858,6 +1860,8 @@ bitflags! {
|
|||
const ANYIO = 1 << 20;
|
||||
const FASTAPI = 1 << 21;
|
||||
const COPY = 1 << 22;
|
||||
const MARKUPSAFE = 1 << 23;
|
||||
const FLASK = 1 << 24;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue