From ca6d2c1fa7e95ec18221f3170a2743cd6ff08e88 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Thu, 28 Oct 2021 11:35:04 +0200 Subject: [PATCH] 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. --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.47.2