Enable PERF ruff rules (#113408)

This commit is contained in:
Joost Lekkerkerker 2024-03-14 14:10:02 +01:00 committed by GitHub
parent a16ea3d7bd
commit 606ee3c379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -599,9 +599,7 @@ select = [
"N804", # First argument of a class method should be named cls
"N805", # First argument of a method should be named self
"N815", # Variable {name} in class scope should not be mixedCase
"PERF101", # Do not cast an iterable to list before iterating over it
"PERF102", # When using only the {subset} of a dict use the {subset}() method
"PERF203", # try-except within a loop incurs performance overhead
"PERF", # Perflint
"PGH004", # Use specific rule codes when using noqa
"PLC0414", # Useless import alias. Import alias does not rename original package.
"PLC", # pylint