chore: pin ruff and ty linter versions - #246
Merged
Merged
Conversation
cassiofariasmachado
previously approved these changes
Jul 29, 2026
cassiofariasmachado
left a comment
Member
There was a problem hiding this comment.
LGTM. Just remember to adjust the title and description of this pull request.
cassiofariasmachado
approved these changes
Jul 29, 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.
Description
Pins the
tyandruffversions used by the code-quality checks.CI's "Code Quality Checks" job runs the pre-commit hooks, which invoked the linters as unpinned
uvx ty check ./uvx ruff ....uvxfetches the latest release from PyPI at run time, ignoring bothuv.lockand thepyproject.tomldev-group constraints.This PR pins the tools to exact versions in one place and invokes them so that pin is honoured everywhere:
pyproject.toml[dependency-groups] dev:ty==0.0.64,ruff==0.16.0(both pinned to the latest release;tywas already at 0.0.64,ruffis bumped from the previously-resolved 0.15.5).uv.lock: regenerated to record the pinned versions..pre-commit-config.yaml: the three hooks now useuv run ruff .../uv run ty check .instead ofuvx ....uv runexecutes the tools from the project's locked environment, souv.lockis the single source of truth. It self-syncs the environment before running, so no extrauv syncstep is needed in the hook path; CI's existinguv sync --all-extrasalready installs thedevgroup, which is a uv default group.docs/DEVELOPMENT.md: updated the documented commands touv run ...and added a note on the pin policy and how to bump versions.ruff 0.16.0formats Python code blocks embedded in Markdown (docstring-code formatting), which0.15.5did not. Adopting it reformats 18*.mdfiles (module user-guides +destination/spec/README.md) — cosmetic only (blank line after imports, wrapped long imports, aligned comments, trailing commas). No.pysource and no Markdown prose was changed.Local commits and CI now run the same, deliberately-chosen linter versions, which only change when we update
pyproject.tomland re-lock.Related Issue
N/A
Type of Change
Please check the relevant option:
How to Test
Describe how reviewers can test your changes:
uv sync --all-extras, then confirm the pinned versions resolve:uv run ty --versionprintsty 0.0.64anduv run ruff --versionprintsruff 0.16.0.uv run ruff check .,uv run ruff format --check ., anduv run ty check .(this is what the pre-commit hooks invoke; CI runs them viauv sync --all-extrasfollowed byuvx pre-commit run --all-fileson a clean checkout).ruff/tyat the pinned versions and the Code Quality Checks CI job is green; a futurety/ruffrelease on PyPI no longer changes what runs here.Checklist
Before submitting your PR, please review and check the following:
Breaking Changes
None for library users — no runtime source (
.py) changed. For contributors,ruff 0.16.0now formats Python code blocks inside Markdown, so the 18 reformatted*.mdfiles reflect the new formatter output; future edits to Markdown code blocks are held to the same formatting.Additional Notes
The three file-hygiene pre-commit hooks (
check-yaml,end-of-file-fixer,trailing-whitespace) were already pinned viarev: v6.0.0and are unchanged.