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