ref: Add ruff rules for perf (PERF) (#4047)

Add ruff rules for perf (PERF)
This commit is contained in:
Christophe Bornet 2024-10-07 23:08:36 +02:00 • committed by GitHub
commit ee3035be28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 36 additions and 67 deletions

View file

@ -62,6 +62,7 @@ select = [
"LOG",
"NPY",
"PD",
"PERF",
"PIE",
"PT",
"PTH",
@ -82,6 +83,7 @@ select = [
ignore = [
"COM812", # Messes with the formatter
"ISC001", # Messes with the formatter
"PERF203", # Rarely useful
"RUF006", # TODO (Store a reference to the return value of `asyncio.create_task`)
"RUF012", # TODO (Mutable class attributes should be annotated with `typing.ClassVar`)
]