Skip to content

fix(build): make typecheck matches CI (mypy packages/*/src) - #85

Draft
apucacao wants to merge 1 commit into
mainfrom
alexis/fix-make-typecheck
Draft

fix(build): make typecheck matches CI (mypy packages/*/src)#85
apucacao wants to merge 1 commit into
mainfrom
alexis/fix-make-typecheck

Conversation

@apucacao

Copy link
Copy Markdown
Contributor

Why

make typecheck runs uv run mypy ., which walks every package's tests/conftest.py. mypy sees them as duplicate top-level conftest modules and aborts before checking anything:

error: Duplicate module named "conftest" (also at "./packages/ai/tests/conftest.py")

So the documented local command fails on a clean checkout, even though CI is green.

Fix

CI type-checks packages/*/src (.github/workflows/ci.yml). Point the Makefile target at the same paths so make typecheck matches CI and passes. uv run mypy packages/*/src reports success on 45 source files.

Separate, standalone fix, ahead of the grounded-judge-context PR so that one can meet a clean make typecheck gate.

`make typecheck` ran `uv run mypy .`, which walks every package's
tests/conftest.py. mypy treats them as duplicate top-level `conftest`
modules and aborts before checking anything, so the documented local
command fails on a clean checkout while CI stays green.

CI type-checks `packages/*/src`. Point the Makefile target at the same
paths so `make typecheck` matches CI and passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant