@@ -27,31 +27,33 @@ extend-select = [
27
27
" TID" ,
28
28
" FLY" ,
29
29
" I" ,
30
+ " PERF" ,
30
31
" E" ,
31
32
" W" ,
32
33
" PGH" ,
33
34
" PLE" ,
34
35
" UP" ,
35
36
]
36
37
ignore = [
37
- " C408" , # Unnecessary `dict()` call (rewrite as a literal)
38
- " ISC002" , # Implicitly concatenated string literals over multiple lines
39
- " PIE790" , # Unnecessary `pass` statement
40
- " E241" , # Multiple spaces after comma
41
- " E265" , # Block comment should start with `# `
42
- " E266" , # Too many leading `#` before block comment
43
- " E302" , # TODO: Expected 2 blank lines, found 1
44
- " E402" , # Module level import not at top of file
45
- " E712" , # Avoid equality comparisons to `True` or `False`
46
- " E721" , # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
47
- " E731" , # Do not assign a `lambda` expression, use a `def`
48
- " E741" , # Ambiguous variable name
49
- " F403" , # `from ... import *` used; unable to detect undefined names
50
- " F405" , # may be undefined, or defined from star imports
51
- " F821" , # Undefined name
52
- " F841" , # Local variable is assigned to but never used
53
- " UP015" , # Unnecessary mode argument
54
- " UP031" , # TODO: Use format specifiers instead of percent format
38
+ " C408" , # Unnecessary `dict()` call (rewrite as a literal)
39
+ " ISC002" , # Implicitly concatenated string literals over multiple lines
40
+ " PIE790" , # Unnecessary `pass` statement
41
+ " PERF401" , # PERF401 Use a list comprehension to create a transformed list
42
+ " E241" , # Multiple spaces after comma
43
+ " E265" , # Block comment should start with `# `
44
+ " E266" , # Too many leading `#` before block comment
45
+ " E302" , # TODO: Expected 2 blank lines, found 1
46
+ " E402" , # Module level import not at top of file
47
+ " E712" , # Avoid equality comparisons to `True` or `False`
48
+ " E721" , # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
49
+ " E731" , # Do not assign a `lambda` expression, use a `def`
50
+ " E741" , # Ambiguous variable name
51
+ " F403" , # `from ... import *` used; unable to detect undefined names
52
+ " F405" , # may be undefined, or defined from star imports
53
+ " F821" , # Undefined name
54
+ " F841" , # Local variable is assigned to but never used
55
+ " UP015" , # Unnecessary mode argument
56
+ " UP031" , # TODO: Use format specifiers instead of percent format
55
57
]
56
58
57
59
[lint .per-file-ignores ]
0 commit comments