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:
parent
295a271ad7
commit
570c9c9fcb
1 changed files with 17 additions and 12 deletions
|
|
@ -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]]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue