From ee1e63e9b91a6cba9531e971b31cf6dd109abe7a Mon Sep 17 00:00:00 2001 From: Nathan Weinberg <31703736+nathan-weinberg@users.noreply.github.com> Date: Wed, 3 Dec 2025 17:12:25 -0500 Subject: [PATCH] chore(ci): unify uv versions used in pre-commit (#4297) # What does this PR do? we had three different versions of uv being used in pre-commit. bump all to the latest version. we should probably try and find some way to automate this. Signed-off-by: Nathan Weinberg --- .pre-commit-config.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc3d531ec..aeb581c9a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,6 @@ exclude: 'build/' minimum_pre_commit_version: 4.4.0 +x-uv-dependency: &uv-dependency "uv==0.9.15" default_language_version: python: python3.12 node: "22" @@ -58,7 +59,7 @@ repos: hooks: - id: mypy additional_dependencies: - - uv==0.6.2 + - *uv-dependency - mypy - pytest - rich @@ -77,7 +78,7 @@ repos: - id: uv-lock name: uv-lock additional_dependencies: - - uv==0.7.20 + - *uv-dependency entry: ./scripts/uv-run-with-index.sh lock language: python pass_filenames: false @@ -92,7 +93,7 @@ repos: - id: distro-codegen name: Distribution Template Codegen additional_dependencies: - - uv==0.7.8 + - *uv-dependency entry: ./scripts/uv-run-with-index.sh run --group codegen ./scripts/distro_codegen.py language: python pass_filenames: false @@ -101,7 +102,7 @@ repos: - id: provider-codegen name: Provider Codegen additional_dependencies: - - uv==0.7.8 + - *uv-dependency entry: ./scripts/uv-run-with-index.sh run --group codegen ./scripts/provider_codegen.py language: python pass_filenames: false @@ -110,7 +111,7 @@ repos: - id: openapi-codegen name: API Spec Codegen additional_dependencies: - - uv==0.7.8 + - *uv-dependency entry: sh -c './scripts/uv-run-with-index.sh run scripts/run_openapi_generator.sh' language: python pass_filenames: false @@ -151,7 +152,7 @@ repos: - id: generate-ci-docs name: Generate CI documentation additional_dependencies: - - uv==0.7.8 + - *uv-dependency entry: ./scripts/uv-run-with-index.sh run ./scripts/gen-ci-docs.py language: python pass_filenames: false