From e55d071a3ead95eec442d84e5fbfdbef387ab48a Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Sun, 25 Sep 2022 23:16:10 -0700 Subject: [PATCH] add mypy config matching precommit --- mypy.ini | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mypy.ini b/mypy.ini index e2da60f926..4fb2da1657 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,4 +1,14 @@ [mypy] python_version = 3.8 -ignore_missing_imports = True plugins = numpy.typing.mypy_plugin + +; third-party packages +ignore_missing_imports = True + +; helpful warnings +warn_redundant_casts = True +warn_unreachable = True +warn_unused_ignores = True + +; restrict dynamic typing +warn_return_any = True