Skip to content

Bump ty to 0.0.65 and ruff to 0.16.0 - #364

Merged
alexreinking merged 1 commit into
masterfrom
bump-ty-ruff
Jul 30, 2026
Merged

Bump ty to 0.0.65 and ruff to 0.16.0#364
alexreinking merged 1 commit into
masterfrom
bump-ty-ruff

Conversation

@alexreinking

Copy link
Copy Markdown
Member

Summary

  • Bump ty from 0.0.16 to 0.0.65 and ruff from 0.15.0 to 0.16.0 (pyproject.toml, master/pyproject.toml, .pre-commit-config.yaml, uv.lock).
  • Fix the new issues each tool flags at the newer version:
    • ruff import-sort reordering in master/master.cfg, master/custom_steps.py, worker/buildbot.tac.
    • RUF059: unused sep from halide_target.partition("/") in master/master.cfg — renamed to _sep.
    • PLW1508: worker/buildbot.tac's HALIDE_BB_MASTER_PORT default was passed to os.environ.get() as an int, so port stayed a str whenever the env var was actually set (a real latent bug, not just a lint nit) — now int(os.environ.get(..., "9990")).
    • ty's unresolved-attribute rule rename and a stale # ty: ignore comment it now correctly flags as unused.

Test plan

  • pre-commit run --all-files passes locally
  • buildbot checkconfig passes locally
  • CI (Buildbot Validations) passes on the PR

Updates the pinned versions and fixes what the newer releases flag:
ruff's import-sort and RUF059/PLW1508 rules (an unused `partition()`
binding, and worker/buildbot.tac's HALIDE_BB_MASTER_PORT default,
which was passed to os.environ.get() as an int instead of a str,
so port stayed a str whenever the env var was actually set); ty's
renamed unresolved-attribute rule and a stale `ty: ignore` comment
it now correctly flags as unused.
@alexreinking
alexreinking merged commit d547284 into master Jul 30, 2026
9 checks passed
@alexreinking
alexreinking deleted the bump-ty-ruff branch July 30, 2026 10:36
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