From: Denis Laxalde Date: Thu, 28 Oct 2021 09:35:04 +0000 (+0200) Subject: Let mypy check tests/types code X-Git-Tag: 3.0.2~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca6d2c1fa7e95ec18221f3170a2743cd6ff08e88;p=thirdparty%2Fpsycopg.git Let mypy check tests/types code We configure mypy to check untyped defs in tests/ directory, but only let it check tests/types files at the moment. --- diff --git a/pyproject.toml b/pyproject.toml index a2fc4abdd..82a801c3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,12 @@ testpaths=[ [tool.mypy] -files = ["psycopg/psycopg", "psycopg_pool/psycopg_pool", "psycopg_c/psycopg_c"] +files = [ + "psycopg/psycopg", + "psycopg_pool/psycopg_pool", + "psycopg_c/psycopg_c", + "tests/types", +] warn_unused_ignores = true show_error_codes = true strict = true @@ -28,5 +33,6 @@ ignore_missing_imports = true [[tool.mypy.overrides]] module = "tests.*" +check_untyped_defs = true disallow_untyped_defs = false disallow_untyped_calls = false