Run mypy in the "lint" session

It needs the dependencies of `velofy` installed,
and it now also reports "# type: ignore" comments without an error code
or that are not needed anymore
This commit is contained in:
Alexander Hess 2026-11-30 13:15:19 +01:00
commit 570c9c9fcb
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -364,6 +364,12 @@ untyped_calls_exclude = [
# Disallow functions without type annotations (or incomplete annotations)
disallow_untyped_defs = true
# Require an error code in all "# type: ignore" comments
enable_error_code = ["ignore-without-code"]
# Report "# type: ignore" comments that are not needed anymore
warn_unused_ignores = true
[[tool.mypy.overrides]]