@@ -86,11 +86,14 @@ select = [
86
86
ignore = [
87
87
" ANN001" , # Missing type annotation for function argument `X` # TO REMOVE
88
88
" ANN201" , # Missing return type annotation for public function # TO REMOVE
89
+ " ANN202" , # Missing return type annotation for private function # TO REMOVE
89
90
" ANN204" , # Missing return type annotation for special method # TO REMOVE
90
91
" ANN401" , # Allow typing.Any
91
92
" ARG002" , # Unused argument # TO REMOVE
92
93
" B008" , # Do not perform function call `StandardScaler` in argument defaults # TO REMOVE
93
94
" B020" , # Loop control variable `generated_smiles` overrides iterable it iterates # TO REMOVE
95
+ " B024" , # `xxx` is an abstract base class, but it has no abstract methods or properties # TO REMOVE
96
+ " B027" , # `xxx` is an empty method in an abstract base class, but has no abstract decorator
94
97
" COM812" , # Trailing comma missing # TO REMOVE
95
98
" DOC202" , # Docstring should not have a returns section because the function doesn't return anything # TO REMOVE
96
99
" D203" , # 1 blank line required before class docstring # TO REMOVE
@@ -101,6 +104,7 @@ ignore = [
101
104
" ERA001" , # Found commented-out code # TO REMOVE
102
105
" FA100" , # Add `from __future__ import annotations` # TO REMOVE
103
106
" FA102" , # Missing `from __future__ import annotations` # TO REMOVE
107
+ " FURB113" , # Use `xxx.extend(...)` instead of repeatedly calling `xxx.append() # TO REMOVE
104
108
" FURB171" , # [*] Membership test against single-item container # TO REMOVE
105
109
" FURB177" , # Prefer `Path.cwd()` over `Path().resolve() # TO REMOVE
106
110
" N803" , # Argument name should be lowercase # TO REMOVE
@@ -109,12 +113,15 @@ ignore = [
109
113
" PD011" , # Use `.to_numpy()` instead of `.values` # TO REMOVE
110
114
" PD901" , # Avoid using the generic variable name `df` for DataFrames # TO REMOVE
111
115
" PGH003" , # Blanket type ignore for types
116
+ " PGH004" , # Use specific rule codes when using `noqa` # TO REMOVE
112
117
" PERF203" , # `try`-`except` within a loop incurs performance overhead # TO REMOVE
113
118
" PERF401" , # Use a list comprehension to create a transformed list # TO REMOVE
114
119
" PIE804" , # Unnecessary `dict` kwargs # TO REMOVE
115
120
" PLC1901" , # `rest == ""` can be simplified to `not rest` as an empty string is falsey # TO REMOVE
116
121
" PLR0911" , # Too many return statements (8 > 6) # TO REMOVE
122
+ " PLR0912" , # Too many branches (19 > 12) # TO REMOVE
117
123
" PLR0913" , # too-many-arguments
124
+ " PLR0914" , # too-many-locals # TO REMOVE
118
125
" PLR2004" , # Magic value used in comparison # TO REMOVE
119
126
" PLC2701" , # Private name import # TO REMOVE
120
127
" PLR0917" , # too-many-positional-arguments # TO REMOVE
@@ -133,10 +140,12 @@ ignore = [
133
140
" S311" , # suspicious-non-cryptographic-random-usage
134
141
" SIM102" , # Use a single `if` statement instead of nested `if` statements # TO REMOVE
135
142
" SIM103" , # Return the condition directly # TO REMOVE
143
+ " SIM105" , # Use `contextlib.suppress(RuntimeError)` instead of `try`-`except`-`pass` # TO REMOVE
136
144
" SIM108" , # Use ternary operator # TO REMOVE
137
145
" SIM110" , # Use return any() instead of `for` loop # TO REMOVE
138
146
" SIM114" , # Combine `if` branches # TO REMOVE
139
147
" SIM117" , # Use a single `with` statement with multiple contexts instead of nested `with` statements # TO REMOVE
148
+ " SIM401" , # Use `xxx` instead of an `if` block # TO REMOVE
140
149
" SLF001" , # Private member accessed # TO REMOVE
141
150
" T201" , # print found # TO REMOVE
142
151
" TC001" , # Move application import `xxx` into a type-checking block # TO REMOVE
0 commit comments