chore: repo-root mirrors-mypy pre-commit is broken on main #10
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/otel-a2a-relay#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The repo-root
pre-commit run mypyhook (mirrors-mypy v1.20.0 in.pre-commit-config.yaml) fails with 64 type errors onmain(3a5ec43). The hook'sadditional_dependenciesonly ship opentelemetry + types-pyyaml. It cannot resolve fastapi/starlette/pytest decorator types or per-package src layouts, so[untyped-decorator]and similar errors fire across the channels router, luca peer, and tests.By contrast,
make lint(per-packageuv run mypyinvocations) is green - that uses each member-package's own resolved env.Symptoms (on bare HEAD)
Fix options
mirrors-mypyfrom.pre-commit-config.yamlentirely - rely onmake lint/coily exec lintto gate types. The pre-commit hook is misleading because it can't see per-package deps anyway.language: systemand invoke per-package mypy (similar to how the audit-precommit-coverage rollout is moving local python hooks).additional_dependencies(fragile, drifts).Caught while landing coilysiren/otel-a2a-relay#135 - SKIPped mypy for that commit. Tracking here so the gate isn't silently broken forever.
Ported from coilysiren/otel-a2a-relay#138.
Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag:
burndown-2026-06.