From 0c323cfb5b3ca7a3f38c26e51c9665ba8e8824bb Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sun, 17 May 2020 20:17:34 +0100 Subject: [PATCH] Add non-strict typechecking to test module 'strict' is a global flag, so I've had to break out the type- checking options to be more specific --- setup.cfg | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 350db702..d54a42bb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,5 +16,25 @@ exclude = junit_family=xunit2 [mypy] -files=cibuildwheel/ -strict=True +python_version = 3.6 +files = cibuildwheel,test + +warn_unused_configs = True +warn_redundant_casts = True + +[mypy-cibuildwheel] +disallow_any_generics = True +disallow_subclassing_any = True +disallow_untyped_calls = True +disallow_untyped_defs = True +disallow_incomplete_defs = True +check_untyped_defs = True +disallow_untyped_decorators = True +no_implicit_optional = True +warn_unused_ignores = True +warn_return_any = True +no_implicit_reexport = True +strict_equality = True + +[mypy-pytest,setuptools] +ignore_missing_imports = True