aboutsummaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d51cbf3b..4149b19f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,10 +11,17 @@ repos:
- repo: local
hooks:
+ - id: uv-lock
+ name: uv lock
+ description: Checks the validity of the uv.lock file.
+ entry: uv lock
+ language: system
+ files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
+ pass_filenames: false
- id: ruff
name: ruff
description: Run ruff linting
- entry: uv run ruff check --force-exclude
+ entry: uv run --frozen ruff check --force-exclude
language: system
'types_or': [python, pyi]
require_serial: true