@@ -185,6 +185,9 @@ line-length = 88
185
185
186
186
[tool .ruff .lint ]
187
187
select = [
188
+ # flake8-annotations
189
+ " ANN001" ,
190
+ " ANN2" ,
188
191
# pycodestyle
189
192
" E" ,
190
193
# Pyflakes
@@ -196,21 +199,29 @@ select = [
196
199
]
197
200
ignore = [" E501" , " D1" , " D415" ]
198
201
202
+ [tool .ruff .lint .per-file-ignores ]
203
+ "tests/*" = [" ANN" ]
204
+
199
205
[tool .ruff .lint .isort ]
200
206
known-first-party = [" commitizen" , " tests" ]
201
207
202
208
[tool .ruff .lint .pydocstyle ]
203
209
convention = " google"
204
210
205
211
[tool .mypy ]
206
- files = " commitizen"
212
+ files = [" commitizen" , " tests" ]
213
+ disallow_untyped_defs = true
207
214
disallow_untyped_decorators = true
208
215
disallow_subclassing_any = true
209
216
warn_return_any = true
210
217
warn_redundant_casts = true
211
218
warn_unused_ignores = true
212
219
warn_unused_configs = true
213
220
221
+ [[tool .mypy .overrides ]]
222
+ module = " tests/*"
223
+ disallow_untyped_defs = false
224
+
214
225
[[tool .mypy .overrides ]]
215
226
module = " py.*" # Legacy pytest dependencies
216
227
ignore_missing_imports = true
@@ -227,14 +238,14 @@ poetry_command = ""
227
238
[tool .poe .tasks ]
228
239
format.help = " Format the code"
229
240
format.sequence = [
230
- { cmd = " ruff check --fix commitizen tests " },
231
- { cmd = " ruff format commitizen tests " },
241
+ { cmd = " ruff check --fix" },
242
+ { cmd = " ruff format" },
232
243
]
233
244
234
245
lint.help = " Lint the code"
235
246
lint.sequence = [
236
- { cmd = " ruff check commitizen/ tests/ --fix " },
237
- { cmd = " mypy commitizen/ tests/ " },
247
+ { cmd = " ruff check" },
248
+ { cmd = " mypy" },
238
249
]
239
250
240
251
check-commit.help = " Check the commit message"
0 commit comments