From 77c01912c96b604e013b30da83d89d3f9326f400 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Tue, 4 Aug 2026 16:23:42 -0700 Subject: [PATCH] fix(ci): run mypy on all files, not just top-level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test workflow ran `mypy ./**/*.py`, but `**` only recurses when the shell has `globstar` enabled — which it is NOT in the non-interactive shell CI uses. So `./**/*.py` expanded to just the two top-level files (`src/__init__.py`, `tests/__init__.py`) and mypy silently skipped every example under `src/blocks/` (and nested tests). CI reported 'no issues found in 2 source files' while type-checking none of the actual examples. Use `mypy .` so mypy walks the tree itself instead of relying on shell globbing. Coverage goes from 2 files to all of them (e.g. block-kit: 2 -> 32); still passes on all collections. Co-Authored-By: Claude --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d3810d..69f397f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,5 +29,5 @@ jobs: pip install -r requirements.txt ruff check ruff format --diff --check - mypy ./**/*.py + mypy . pytest -v