From a32b4546de2d8541ccdf4e677ebc7bbb66ef5fb1 Mon Sep 17 00:00:00 2001 From: Nigel Jones Date: Thu, 26 Mar 2026 10:28:53 +0000 Subject: [PATCH] fix: exclude tooling from mypy check Signed-off-by: Nigel Jones --- .pre-commit-config.yaml | 2 +- pyproject.toml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 97b91a439f..8297a56e5b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: hooks: - id: mypy name: MyPy - entry: uv run --no-sync mypy --install-types --non-interactive . --exclude scratchpad/ --exclude tmp/ + entry: uv run --no-sync mypy --install-types --non-interactive . pass_filenames: false language: system types_or: [python, jupyter] diff --git a/pyproject.toml b/pyproject.toml index 48cbd7aeb5..9bde134bd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -288,6 +288,11 @@ install_types = true non_interactive = true disable_error_code = ["empty-body", "import-untyped"] python_version = "3.11" +exclude = [ +"^tooling/", +"^scratchpad/", +"^tmp/" +] [[tool.mypy.overrides]] # Keep import-not-found suppressed for optional dependencies