Skip to content

chore(ci): pin ty version so unrelated PRs don't go red on tooling drift - #120

Merged
tdody merged 1 commit into
mainfrom
chore/pin-ty-ci
Jun 26, 2026
Merged

chore(ci): pin ty version so unrelated PRs don't go red on tooling drift#120
tdody merged 1 commit into
mainfrom
chore/pin-ty-ci

Conversation

@tdody

@tdody tdody commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Problem

CI's backend job runs uvx ty check unpinned, so it pulls whatever ty version is newest at run time. Newer ty releases flag pre-existing # ty: ignore directives as unused, which turns CI red on PRs that changed nothing related. We saw it flag rate_limit.py:90 on one run and tmux.py:673 on another — the flagged set literally shifts with each ty release. This was blocking every open PR (and main).

Fix

  • Pin uvx ty@0.0.35 in .github/workflows/ci.yml and the pre-push hook so ty results are deterministic (bump deliberately).
  • Drop the one directive that 0.0.35 currently flags as unused (tmux.py:673 — a redundant # ty: ignore on a srv.cmd(*args) call that ty handles fine via the *args unpack, matching the existing _cmd_ok precedent).

Verified: uvx ty@0.0.35 check clean, ruff clean, 385 backend tests pass.

This unblocks #116, #117, #118, #119 once they pick up main.

🤖 Generated with Claude Code

CI ran `uvx ty check` unpinned, so it pulled whatever ty was newest at
run time. Newer ty releases flag pre-existing `# ty: ignore` directives
as unused, turning CI red on PRs that changed nothing related (observed:
rate_limit.py:90 on one run, tmux.py:673 on another — the flagged set
shifts per ty version). Pin to ty@0.0.35 in CI and the pre-push hook so
results are deterministic; bump deliberately. Also drops the one
currently-unused directive (tmux.py:673) so 0.0.35 is clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tdody
tdody merged commit 140d719 into main Jun 26, 2026
3 checks passed
@tdody
tdody deleted the chore/pin-ty-ci branch June 26, 2026 00:04
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.

1 participant