@@ -21,37 +21,44 @@ line-ending = "lf"
21
21
[lint ]
22
22
preview = true
23
23
extend-select = [
24
- " B" ,
25
- " C4" ,
26
- " ISC" ,
27
- " LOG" ,
28
- " G" ,
29
- " PIE" ,
30
- " TID " ,
31
- " FLY " ,
32
- " I " ,
33
- " PD " ,
34
- " PERF " ,
35
- " E " ,
36
- " W " ,
37
- " PGH " ,
38
- " PLE " ,
39
- " UP " ,
40
- " Q " ,
24
+ " B" , # flake8-bugbear
25
+ " C4" , # flake8-comprehensions
26
+ " ISC" , # flake8-implicit-str-concat
27
+ " LOG" , # flake8-logging
28
+ " G" , # flake8-logging-format
29
+ " PIE" , # flake8-pie
30
+ " Q " , # flake8-quotes
31
+ " TID " , # flake8-tidy-imports
32
+ " FLY " , # flynt
33
+ " I " , # isort
34
+ " PD " , # pandas-vet
35
+ " PERF " , # perflint
36
+ " E " , # pycodestyle/error
37
+ " W " , # pycodestyle/warning
38
+ " PGH " , # pygrep-hooks
39
+ " PLE " , # pylint/error
40
+ " UP " , # pyupgrade
41
41
]
42
42
ignore = [
43
+ # flake8-bugbear
43
44
" B006" , # Do not use mutable data structures for argument defaults
44
45
" B007" , # Loop control variable not used within loop body
45
46
" B011" , # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
46
47
" B023" , # Function definition does not bind loop variable
47
48
" B028" , # No explicit `stacklevel` keyword argument found
48
49
" B904" , # Within an `except` clause distinguish raised exceptions from errors in exception handling
49
50
" B905" , # `zip()` without an explicit `strict=` parameter
51
+ # flake8-comprehensions
50
52
" C408" , # Unnecessary `dict()` call (rewrite as a literal)
53
+ # flake8-implicit-str-concat
51
54
" ISC002" , # Implicitly concatenated string literals over multiple lines
55
+ # flake8-pie
52
56
" PIE790" , # Unnecessary `pass` statement
57
+ # pandas-vet
53
58
" PD901" , # Avoid using the generic variable name `df` for DataFrames
59
+ # perflint
54
60
" PERF401" , # Use a list comprehension to create a transformed list
61
+ # pycodestyle/error
55
62
" E241" , # Multiple spaces after comma
56
63
" E265" , # Block comment should start with `# `
57
64
" E266" , # Too many leading `#` before block comment
@@ -61,10 +68,12 @@ ignore = [
61
68
" E721" , # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
62
69
" E731" , # Do not assign a `lambda` expression, use a `def`
63
70
" E741" , # Ambiguous variable name
71
+ # pyflakes
64
72
" F403" , # `from ... import *` used; unable to detect undefined names
65
73
" F405" , # may be undefined, or defined from star imports
66
74
" F821" , # Undefined name
67
75
" F841" , # Local variable is assigned to but never used
76
+ # pyupgrade
68
77
" UP015" , # Unnecessary mode argument
69
78
" UP031" , # TODO: Use format specifiers instead of percent format
70
79
]
0 commit comments