Skip to content

Conversation

@corbt
Copy link
Contributor

@corbt corbt commented Jan 17, 2026

Summary

Replaces pyright with ty, Astral's new Rust-based type checker.

Stacked on #516 (add-prek)

Changes

  • Replace pyright with ty in dev dependencies
  • Add # ty: ignore comments to baseline 269 existing issues
  • Update prek hook to use uv run ty check src tests

Why ty?

  • 10-60x faster than pyright (same team as ruff/uv)
  • Stricter defaults - catches more real issues
  • Better diagnostics - multi-file context in error messages
  • Baseline workflow - --add-ignore flag lets us adopt without fixing all existing issues

Status

ty passes with 0 errors. The 31 remaining warnings are about unused # type: ignore comments from the pyright era that can be cleaned up incrementally.

New type errors will be caught going forward while the existing baseline is suppressed.

Cursor Bot added 2 commits January 17, 2026 02:58
- Replace pyright with ty (Astral's new Rust-based type checker)
- Add ty: ignore comments to baseline existing issues
- Update prek hook to use ty instead of pyright
- ty is 10-60x faster than pyright with stricter defaults

The 31 remaining warnings are about unused `type: ignore` comments
from the pyright era - can be cleaned up incrementally.
These are leftover # type: ignore comments from pyright that ty
doesn't need. Can be cleaned up incrementally.
@corbt corbt requested a review from bradhilton January 17, 2026 03:03
@corbt corbt merged commit 8e10d86 into add-prek Jan 19, 2026
2 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.

2 participants