From 3f5fdc580ab09b9faeb7f1e5194e3ad3aeb3a33e Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 7 Jul 2021 15:04:52 -0700 Subject: [PATCH] Add (mostly disabled) mypy configs. We're missing a lot of checking right now. Most of it requires additional cleanup. For now I've enabled what I could and will follow up to clean up and enable more checking. (cherry picked from commit 29753a6aa9e38a2a2a9a0741ff9bda31b33498c2) --- mypy.ini | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/mypy.ini b/mypy.ini index b8bb3a89..b63df6a9 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,8 +1,22 @@ [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.*] -follow_imports=silent ignore_missing_imports = True [mypy-faker.*]