Skip to content

Commit ceb716b

Browse files
lesebashwinb
andauthored
chore: set minimum pre-commit version (#4148)
# What does this PR do? - force a min precommit version - pin to >= 4.3.0 when installing --------- Signed-off-by: Sébastien Han <[email protected]> Co-authored-by: Ashwin Bharambe <[email protected]>
1 parent 4442b24 commit ceb716b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
working-directory: src/llama_stack_ui
5454

5555
- name: Install pre-commit
56-
run: python -m pip install pre-commit
56+
run: python -m pip install 'pre-commit>=4.4.0'
5757

5858
- name: Cache pre-commit
5959
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
exclude: 'build/'
2-
2+
minimum_pre_commit_version: 4.4.0
33
default_language_version:
44
python: python3.12
55
node: "22"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ dev = [
6969
"black",
7070
"ruff",
7171
"mypy",
72-
"pre-commit",
72+
"pre-commit>=4.4.0",
7373
"ruamel.yaml", # needed for openapi generator
7474
]
7575
# Type checking dependencies - includes type stubs and optional runtime dependencies

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)