From 5e9fbd5b27a1d3451df3fc09e13cb1804c4a1125 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sun, 9 Aug 2026 21:50:22 +0300 Subject: [PATCH 1/2] Exclude extra test images from mypy --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 76182deb21c..2270b4144fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -187,6 +187,11 @@ lint.isort.required-imports = [ max_supported_python = "3.15" [tool.mypy] +exclude = [ + "^Tests/images/msp/", + "^Tests/images/picins/", + "^Tests/images/sunraster/", +] follow_imports = "silent" python_version = "3.11" disallow_any_generics = true From bf9f291ea689a04f799637425343b831bd7900b3 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sun, 9 Aug 2026 22:30:07 +0300 Subject: [PATCH 2/2] Run mypy with 4 workers in tox --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 2270b4144fc..bfc0dcbd3e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -202,6 +202,7 @@ warn_unreachable = true enable_error_code = "ignore-without-code" extra_checks = true pretty = true +num_workers = 4 [tool.pytest] addopts = [ "-ra", "--color=auto" ]