mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-04 10:10:36 +00:00
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 <nweinber@redhat.com>
This commit is contained in:
parent
c9b50b7e5b
commit
ee1e63e9b9
1 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
exclude: 'build/'
|
exclude: 'build/'
|
||||||
minimum_pre_commit_version: 4.4.0
|
minimum_pre_commit_version: 4.4.0
|
||||||
|
x-uv-dependency: &uv-dependency "uv==0.9.15"
|
||||||
default_language_version:
|
default_language_version:
|
||||||
python: python3.12
|
python: python3.12
|
||||||
node: "22"
|
node: "22"
|
||||||
|
|
@ -58,7 +59,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- uv==0.6.2
|
- *uv-dependency
|
||||||
- mypy
|
- mypy
|
||||||
- pytest
|
- pytest
|
||||||
- rich
|
- rich
|
||||||
|
|
@ -77,7 +78,7 @@ repos:
|
||||||
- id: uv-lock
|
- id: uv-lock
|
||||||
name: uv-lock
|
name: uv-lock
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- uv==0.7.20
|
- *uv-dependency
|
||||||
entry: ./scripts/uv-run-with-index.sh lock
|
entry: ./scripts/uv-run-with-index.sh lock
|
||||||
language: python
|
language: python
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
@ -92,7 +93,7 @@ repos:
|
||||||
- id: distro-codegen
|
- id: distro-codegen
|
||||||
name: Distribution Template Codegen
|
name: Distribution Template Codegen
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- uv==0.7.8
|
- *uv-dependency
|
||||||
entry: ./scripts/uv-run-with-index.sh run --group codegen ./scripts/distro_codegen.py
|
entry: ./scripts/uv-run-with-index.sh run --group codegen ./scripts/distro_codegen.py
|
||||||
language: python
|
language: python
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
@ -101,7 +102,7 @@ repos:
|
||||||
- id: provider-codegen
|
- id: provider-codegen
|
||||||
name: Provider Codegen
|
name: Provider Codegen
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- uv==0.7.8
|
- *uv-dependency
|
||||||
entry: ./scripts/uv-run-with-index.sh run --group codegen ./scripts/provider_codegen.py
|
entry: ./scripts/uv-run-with-index.sh run --group codegen ./scripts/provider_codegen.py
|
||||||
language: python
|
language: python
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
@ -110,7 +111,7 @@ repos:
|
||||||
- id: openapi-codegen
|
- id: openapi-codegen
|
||||||
name: API Spec Codegen
|
name: API Spec Codegen
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- uv==0.7.8
|
- *uv-dependency
|
||||||
entry: sh -c './scripts/uv-run-with-index.sh run scripts/run_openapi_generator.sh'
|
entry: sh -c './scripts/uv-run-with-index.sh run scripts/run_openapi_generator.sh'
|
||||||
language: python
|
language: python
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
@ -151,7 +152,7 @@ repos:
|
||||||
- id: generate-ci-docs
|
- id: generate-ci-docs
|
||||||
name: Generate CI documentation
|
name: Generate CI documentation
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- uv==0.7.8
|
- *uv-dependency
|
||||||
entry: ./scripts/uv-run-with-index.sh run ./scripts/gen-ci-docs.py
|
entry: ./scripts/uv-run-with-index.sh run ./scripts/gen-ci-docs.py
|
||||||
language: python
|
language: python
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue