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