Prepare for fully typechecked codebase

This commit is contained in:
Jonas Schäfer
2021-01-16 16:02:25 +01:00
parent d3777d3b07
commit 9e3fcbaf67
7 changed files with 249 additions and 90 deletions

31
mypy.ini Normal file
View File

@@ -0,0 +1,31 @@
[mypy]
python_version = 3.7
#warn_return_any = True
warn_unused_configs = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
#check_untyped_defs = True
disallow_untyped_decorators = False
#disallow_any_unimported = True
#disallow_any_expr = True
#disallow_any_decorated = True
disallow_any_explicit = False
#disallow_any_generics = True
disallow_subclassing_any = False
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_unreachable = True
[mypy-hsluv.*]
ignore_missing_imports = True
[mypy-flask_wtf.*]
ignore_missing_imports = True
[mypy-flask_babel.*]
ignore_missing_imports = True
[mypy-wtforms.*]
ignore_missing_imports = True