Skip to content

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

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

chore: define uv version once in pre-commit config#2971
adamtheturtle merged 2 commits intomainfrom
chore/pre-commit-uv-yaml-anchor

Conversation

@adamtheturtle
Copy link
Copy Markdown
Member

@adamtheturtle adamtheturtle commented Apr 22, 2026

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-only change that centralizes the pinned uv version; main risk is pre-commit/YAML tooling reacting differently to the new root anchor key.

Overview
Centralizes the pinned uv version in .pre-commit-config.yaml by introducing a root YAML anchor (.uv_version: &uv_version uv==0.9.5).

Updates every local hook to use additional_dependencies: [*uv_version] instead of repeating uv==0.9.5, reducing duplication while keeping hook behavior the same.

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

@adamtheturtle adamtheturtle merged commit da4c980 into main Apr 22, 2026
15 checks passed
@adamtheturtle adamtheturtle deleted the chore/pre-commit-uv-yaml-anchor branch April 22, 2026 07:46
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