@@ -32,39 +32,41 @@ extend-select = [
3232 " FLY" ,
3333 " I" ,
3434 " PD" ,
35+ " PERF" ,
3536 " E" ,
3637 " W" ,
3738 " PGH" ,
3839 " PLE" ,
3940 " UP" ,
4041]
4142ignore = [
42- " B006" , # Do not use mutable data structures for argument defaults
43- " B007" , # Loop control variable not used within loop body
44- " B011" , # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
45- " B023" , # Function definition does not bind loop variable
46- " B028" , # No explicit `stacklevel` keyword argument found
47- " B904" , # Within an `except` clause distinguish raised exceptions from errors in exception handling
48- " B905" , # `zip()` without an explicit `strict=` parameter
49- " C408" , # Unnecessary `dict()` call (rewrite as a literal)
50- " ISC002" , # Implicitly concatenated string literals over multiple lines
51- " PIE790" , # Unnecessary `pass` statement
52- " PD901" , # Avoid using the generic variable name `df` for DataFrames
53- " E241" , # Multiple spaces after comma
54- " E265" , # Block comment should start with `# `
55- " E266" , # Too many leading `#` before block comment
56- " E302" , # TODO: Expected 2 blank lines, found 1
57- " E402" , # Module level import not at top of file
58- " E712" , # Avoid equality comparisons to `True` or `False`
59- " E721" , # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
60- " E731" , # Do not assign a `lambda` expression, use a `def`
61- " E741" , # Ambiguous variable name
62- " F403" , # `from ... import *` used; unable to detect undefined names
63- " F405" , # may be undefined, or defined from star imports
64- " F821" , # Undefined name
65- " F841" , # Local variable is assigned to but never used
66- " UP015" , # Unnecessary mode argument
67- " UP031" , # TODO: Use format specifiers instead of percent format
43+ " B006" , # Do not use mutable data structures for argument defaults
44+ " B007" , # Loop control variable not used within loop body
45+ " B011" , # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
46+ " B023" , # Function definition does not bind loop variable
47+ " B028" , # No explicit `stacklevel` keyword argument found
48+ " B904" , # Within an `except` clause distinguish raised exceptions from errors in exception handling
49+ " B905" , # `zip()` without an explicit `strict=` parameter
50+ " C408" , # Unnecessary `dict()` call (rewrite as a literal)
51+ " ISC002" , # Implicitly concatenated string literals over multiple lines
52+ " PIE790" , # Unnecessary `pass` statement
53+ " PD901" , # Avoid using the generic variable name `df` for DataFrames
54+ " PERF401" , # Use a list comprehension to create a transformed list
55+ " E241" , # Multiple spaces after comma
56+ " E265" , # Block comment should start with `# `
57+ " E266" , # Too many leading `#` before block comment
58+ " E302" , # TODO: Expected 2 blank lines, found 1
59+ " E402" , # Module level import not at top of file
60+ " E712" , # Avoid equality comparisons to `True` or `False`
61+ " E721" , # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
62+ " E731" , # Do not assign a `lambda` expression, use a `def`
63+ " E741" , # Ambiguous variable name
64+ " F403" , # `from ... import *` used; unable to detect undefined names
65+ " F405" , # may be undefined, or defined from star imports
66+ " F821" , # Undefined name
67+ " F841" , # Local variable is assigned to but never used
68+ " UP015" , # Unnecessary mode argument
69+ " UP031" , # TODO: Use format specifiers instead of percent format
6870]
6971
7072[lint .per-file-ignores ]
0 commit comments