Repository navigation
build: adopt strict ty checks with prek - #246
Merged
Merged
Conversation
joshuarli
marked this pull request as ready for review
October 20, 2026 19:32
Use ty for type checking and activate the upstream strict typing profile with soundness checks. Keep the hook workflow on prek and align the lockfile with the new development toolchain. Co-Authored-By: Codex GPT-6 <codex@openai.com>
joshuarli
force-pushed
the
codex/uv-ruff-ty-prek
branch
from
October 20, 2026 19:36
6b3eafb to
8351c24
Compare
joshuarli
enabled auto-merge (squash)
October 20, 2026 19:45
kenzoengineer
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR is based on
mainafter #236 merged. It replaces mypy/Pyright type checking with Astraltyand strengthens Ruff checks.ty.ty, with explicit errors for unsound assignments, returns, and yields.prekas the hook runner; its compatible.pre-commit-config.yamlformat remains in use.Python 3.13.16, uv 0.13.4, and the
prekworkflow are already inmainfrom the merged Python and uv upgrades. The Colima/Lima work from #236 is also inmain; this PR adds only tooling changes.Verification
uv sync --lockeduv run ruff check .uv run ruff format --check .uv run ty checkuv run prek validate-config .pre-commit-config.yamluv run prek run ty shellcheck --all-filesuv run pytest tests/lib/test_archive.py tests/lib/test_colima_storage.py tests/lib/test_venv.py— 50 passedThe full test suite and formatter hook were not run locally.