dcs_liberation/mypy.ini
Dan Albert 65dfa8e209 Type check the contents of untyped functions.
By default mypy doesn't type check the code within an untyped function.
This enables that and fixes typing errors to accomodate it.

This did uncover a very old bug:
https://github.com/dcs-liberation/dcs_liberation/issues/1417

(cherry picked from commit fc32b983413dd741a23d33db6da89ddcba7bed64)
2021-08-08 12:52:04 -07:00

32 lines
724 B
INI

[mypy]
# TODO: Cleanup so we can enable the checks commented out here.
check_untyped_defs = True
# disallow_any_decorated = True
# disallow_any_expr = True
# disallow_any_generics = True
# disallow_any_unimported = True
disallow_untyped_decorators = True
# disallow_untyped_defs = True
follow_imports = silent
# implicit_reexport = False
namespace_packages = True
no_implicit_optional = True
warn_redundant_casts = True
# warn_return_any = True
warn_unreachable = True
warn_unused_ignores = True
[mypy-dcs.*]
ignore_missing_imports = True
[mypy-faker.*]
ignore_missing_imports = True
[mypy-PIL.*]
ignore_missing_imports = True
[mypy-winreg.*]
ignore_missing_imports = True
[mypy-shapely.*]
ignore_missing_imports = True