chore: repo-root mirrors-mypy pre-commit is broken on main #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.