aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Zenith <[email protected]>2025-10-21 16:31:23 -0400
committerGravatar GitHub <[email protected]>2025-10-21 21:31:23 +0100
commitd0a6a7aa56bc5f066aa376ab2d9ff665ae2226fa (patch)
tree0ec8b96bed93ed3620dadeacdb9f99abd75a6f88
parentRelock uv.lock (diff)
chore: add pre-commit hook for checking uv is locked (#3416)
Diffstat (limited to '')
-rw-r--r--.github/workflows/lint-test.yml2
-rw-r--r--.pre-commit-config.yaml9
2 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml
index f651b77e6..0089ca3bf 100644
--- a/.github/workflows/lint-test.yml
+++ b/.github/workflows/lint-test.yml
@@ -27,7 +27,7 @@ jobs:
activate-environment: true
- name: Install dependencies
- run: uv sync --frozen
+ run: uv sync --locked
- name: Run pre-commit hooks
run: SKIP=ruff pre-commit run --all-files
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 01eb141ec..e19d8b84c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,10 +10,17 @@ repos:
args: [--markdown-linebreak-ext=md]
- repo: local
hooks:
+ - id: uv-lock
+ name: uv-lock
+ description: "Automatically run 'uv lock' on your project dependencies"
+ entry: uv lock
+ language: python
+ files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
+ pass_filenames: false
- id: ruff
name: ruff
description: Run ruff linting
- entry: uv run --frozen ruff check --force-exclude
+ entry: uv run --locked ruff check --force-exclude
language: system
'types_or': [python, pyi]
require_serial: true