From 5399efde733a30a4e636ac9abcb9ecdfb77e3dab Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 13 Feb 2024 16:24:36 -0800 Subject: [PATCH] pyproject.toml: Exclude the build directory from mypy checks - build/ directory is generated after the 'make build install' step and contains files that are duplicates of the main source leading to a failure. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 322a0dfff..2a035450f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -201,6 +201,9 @@ disable = [ "too-many-ancestors", # Easy to hit when using Django ] +[tool.mypy] +exclude = "build/" + # Ignore missing type stubs for some libraries. Try to keep this list minimal # and use type annotations where available. [[tool.mypy.overrides]]