Skip to content

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

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#1341
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 refactor that should not change behavior, but YAML anchors/extra root key may affect strict config validators.

Overview
Introduces a single .uv_version YAML anchor in .pre-commit-config.yaml and replaces repeated additional_dependencies: [uv==0.9.5] entries with references to [*uv_version] across all local hooks.

This centralizes the uv pin to reduce duplication and make future version bumps a one-line change.

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

@adamtheturtle adamtheturtle merged commit 3d88814 into main Apr 22, 2026
29 checks passed
@adamtheturtle adamtheturtle deleted the chore/pre-commit-uv-yaml-anchor branch April 22, 2026 08:13
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