Skip to content

fix: exclude build/ and tests/ from mypy to silence false-positive errors#50

Merged
wittekin merged 2 commits intomainfrom
fix/mypy-exclude-build
Mar 8, 2026
Merged

fix: exclude build/ and tests/ from mypy to silence false-positive errors#50
wittekin merged 2 commits intomainfrom
fix/mypy-exclude-build

Conversation

@wittekin
Copy link
Owner

@wittekin wittekin commented Mar 8, 2026

Summary

millstone --eval runs mypy . from the repo root and was reporting:

  • Duplicate module named 'millstone' (caused by build/lib/millstone/ from pip install -e . builds)
  • Source file found twice: e2e.conftest and tests.e2e.conftest (from tests/e2e/conftest.py)

These are false positives — the actual source code has 0 type errors. Adding exclude = ["build/", "dist/", "tests/"] to [tool.mypy] in pyproject.toml clears them.

Test plan

  • mypy . from repo root: Success: no issues found in 50 source files
  • millstone --eval shows typing: 1.00 (errors=0) and Status: PASSED
  • Pre-commit hooks pass

🤖 Generated with Claude Code

wittekin and others added 2 commits March 7, 2026 17:01
For MCP-backed tasklist providers (GitHub Issues, Linear),
has_remaining_tasks() queries the remote and returns True whenever any
open issue with the configured label exists — making --deliver unusable.
Skip the guard for remote providers since new design/plan tasks are
expected to coexist with existing issues.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…duplicate module errors

mypy run from the repo root was reporting "Duplicate module named 'millstone'"
(from build/) and "Source file found twice" (from tests/e2e/conftest.py),
causing the --eval command to show 1 typing error even though the code is clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wittekin wittekin merged commit a8b0086 into main Mar 8, 2026
16 checks passed
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