ref: Add ruff rules for perf (PERF) (#4047)
Add ruff rules for perf (PERF)
This commit is contained in:
parent
dce5523f5e
commit
ee3035be28
17 changed files with 36 additions and 67 deletions
|
|
@ -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`)
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue