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