Skip to content

chore: define uv version once in pre-commit config#3123

Merged
adamtheturtle merged 2 commits into
mainfrom
chore/pre-commit-uv-yaml-anchor
Apr 22, 2026
Merged

chore: define uv version once in pre-commit config#3123
adamtheturtle merged 2 commits into
mainfrom
chore/pre-commit-uv-yaml-anchor

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Apr 22, 2026

Copy link
Copy Markdown
Member

Matches the pattern from literalizer: a YAML anchor .uv_version so the uv pin is declared once and referenced as *uv_version in each hook's additional_dependencies.

pre-commit validate-config may warn about an unexpected root key .uv_version; that is expected and matches literalizer.


Note

Low Risk
Low risk config refactor that should not change hook behavior, but introduces a nonstandard root key that may trigger pre-commit validate-config warnings.

Overview
Defines a single .uv_version YAML anchor for the uv==0.9.5 pin in .pre-commit-config.yaml and updates all affected local hooks to reference it (additional_dependencies: [*uv_version]) instead of repeating the version string.

No hook commands or stages change; this is purely a maintenance/deduplication change to keep the uv pin consistent across hooks.

Reviewed by Cursor Bugbot for commit 88527f3. Bugbot is set up for automated code reviews on this repo. Configure here.

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