mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-24 06:33:55 +00:00
ci(pre-commit): enforce presence of 'upload-time' field in uv.lock
Add a pre-commit hook to ensure all contributions use a uv.lock file that contains the 'upload-time' field (older uv versions do not include that) Refs: #2887
This commit is contained in:
parent
09abdb0a37
commit
e99bf60288
2 changed files with 45 additions and 0 deletions
|
|
@ -155,6 +155,14 @@ repos:
|
|||
require_serial: true
|
||||
files: ^.github/workflows/.*$
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-uv-upload-time
|
||||
name: Check upload-time in uv.lock
|
||||
entry: python3 scripts/check_uv_upload_time.py
|
||||
language: system
|
||||
files: ^uv\.lock$
|
||||
|
||||
ci:
|
||||
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
|
||||
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue