From 606ee3c3792c4f1892b200655c97bc03980f04f0 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Thu, 14 Mar 2024 14:10:02 +0100 Subject: [PATCH] Enable PERF ruff rules (#113408) --- pyproject.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8ccfd9e8aba..f258a0aa2f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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