You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently .github/workflows/ci.yml runs ruff check + ruff format --check
as a hard gate (the lint job), but never runs ty at all -- type-checking is
untested in CI. There is also no .pre-commit-config.yaml in this repo, so
neither tool runs locally pre-commit (per the global dev-standards pre-commit template).
Scope
Add a ty check . step to the lint job in .github/workflows/ci.yml
(or a new typecheck job alongside it).
Add .pre-commit-config.yaml with ruff check --fix, ruff format, and ty check hooks, scoped to staged files only (per project convention:
"pre-commit hooks should check staged files only").
Blocker to resolve first
uv run ty check . currently reports ~496 pre-existing diagnostics
across the repo (mostly in pyAMICA/torch_impl/core.py, e.g. self.W/ self.sphere typed as None | Tensor and subscripted/used without narrowing).
Turning ty check into an immediate hard CI gate would fail the build on main as-is. Options, pick one before wiring the gate:
(a) Clean up the existing diagnostics first (likely its own separate,
larger issue -- torch_impl/core.py is the bulk of them), then gate.
(b) Land ty check as informational/non-blocking in CI now (so regressions
are visible in logs without breaking builds), track cleanup separately,
flip to blocking once clean.
Not scoping the 496-diagnostic cleanup into this issue; decide (a) vs (b) and
size that work separately.
Activity
Scope-suppress irreducible mlx.core unresolved-import (2 -> 0)
Fix ty type-check diagnostics repo-wide (496 -> 0) (#124)
Add ty typecheck job to CI gate (#119)
Add pre-commit config: ruff + ty via uv (#119)
CI: enforce ty type-checking + pre-commit config (ruff + ty) (#125)