Repository navigation
ty-migrate — Zero-dependency CLI to migrate mypy / pyright configs and inline ignores to ty #30931
Prateek-squadron
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone! While migrate-to-uv automates moving from Poetry/Pipenv to uv, migrating larger codebases from mypy, pyright, or basedpyright to ty still required manually translating configs and rewriting inline suppression comments.
I built ty-migrate — a zero-dependency Python 3.11+ CLI you can run directly with:
Bash
uvx ty-migrate --rewrite-ignores --dry-run --diff --report
What it handles
Audit & verification: --report highlights behavioral differences (e.g., strict, check_untyped_defs, mypy plugins) and unmapped codes, --check exits with code 3 for CI, and --verify runs ty check.
Repo: https://github.com/Prateek-squadron/ty-migrate
Feedback, edge cases, and extra rule mappings are very welcome!
All reactions