@@ -147,22 +147,6 @@ color = true
147
147
line-length = 119
148
148
149
149
[tool .ruff ]
150
- # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
151
- # "UP" "TRY" "PLR"
152
- select = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PLC" , " PLE" , " PLW" , " TCH" ]
153
- ignore = [
154
- " ANN002" , " ANN003" , " ANN101" , " ANN102" , " ANN204" , " ANN401" ,
155
- " S101" , " S104" ,
156
- " D105" , " D106" , " D107" , " D200" , " D212" ,
157
- " PD011" ,
158
- " PLW1510" ,
159
- ]
160
-
161
- # Allow autofix for all enabled rules (when `--fix`) is provided.
162
- fixable = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PL" , " PLC" , " PLE" , " PLW" , " TCH" ]
163
- unfixable = []
164
-
165
- # Exclude a variety of commonly ignored directories.
166
150
exclude = [
167
151
" .bzr" ,
168
152
" .direnv" ,
@@ -189,22 +173,37 @@ exclude = [
189
173
# Same as Black.
190
174
line-length = 119
191
175
176
+ [tool .ruff .lint ]
177
+ select = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PLC" , " PLE" , " PLW" , " TCH" ]
178
+ ignore = [
179
+ " ANN002" , " ANN003" , " ANN101" , " ANN102" , " ANN204" , " ANN401" ,
180
+ " S101" , " S104" ,
181
+ " D105" , " D106" , " D107" , " D200" , " D212" ,
182
+ " PD011" ,
183
+ " PLW1510" ,
184
+ ]
185
+
186
+ fixable = [" E" , " W" , " F" , " I" , " N" , " B" , " BLE" , " C" , " D" , " E" , " F" , " I" , " N" , " S" , " T" , " W" , " RUF" , " NPY" , " PD" , " PGH" , " ANN" , " C90" , " PL" , " PLC" , " PLE" , " PLW" , " TCH" ]
187
+ unfixable = []
188
+
189
+ # Exclude a variety of commonly ignored directories.
190
+
192
191
# Allow unused variables when underscore-prefixed.
193
192
dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
194
193
195
194
typing-modules = [" typing" , " types" , " typing_extensions" , " mypy" , " mypy_extensions" ]
196
195
197
- [tool .ruff .per-file-ignores ]
196
+ [tool .ruff .lint . per-file-ignores ]
198
197
"tests/*" = [" S101" , " PLR0913" , " PLR0915" , " PGH003" , " ANN001" , " ANN202" , " ANN201" , " PLR0912" , " TRY301" , " PLW0603" , " PLR2004" , " ANN101" , " S106" , " TRY201" , " ANN003" , " ANN002" , " S105" , " TRY003" ]
199
198
200
- [tool .ruff .mccabe ]
199
+ [tool .ruff .lint . mccabe ]
201
200
# Unlike Flake8, default to a complexity level of 10.
202
201
max-complexity = 10
203
202
204
- [tool .ruff .isort ]
203
+ [tool .ruff .lint . isort ]
205
204
order-by-type = true
206
205
207
- [tool .ruff .pydocstyle ]
206
+ [tool .ruff .lint . pydocstyle ]
208
207
convention = " google"
209
208
210
209
[tool .bumpversion ]
0 commit comments