From 71b2dfe216ab1ec0c2fb00e571417a071d5577f5 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 3 May 2026 02:49:28 +0000 Subject: [PATCH] fix(ci): add --extra dev to pre-commit mypy hook so types-protobuf stubs are present Without --extra dev, uv run mypy does not activate [project.optional-dependencies] dev, which contains types-protobuf. This causes 96 false-positive a2a/protobuf errors locally that don't appear in CI (which installs dev extras explicitly). Pre-commit hooks were routinely bypassed with SKIP=mypy, defeating the type-checking gate entirely. https://claude.ai/code/session_012s2eENfKoeaeeHUyV7Rd9y --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c640cf003..ea3159813 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: hooks: - id: mypy name: mypy - entry: uv run mypy + entry: uv run --extra dev mypy # --extra dev ensures types-protobuf stubs are present language: system types: [python] pass_filenames: false