Skip to content

Commit cbff10d

Browse files
fix(pre-commit): ensure uv.lock is up-to-date with pyproject.toml
1 parent 3f02057 commit cbff10d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 2
2-
enable-beta-ecosystems: true
2+
33
updates:
44
- package-ecosystem: "uv"
55
directory: "/"

.pre-commit-config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ repos:
1111

1212
- repo: local
1313
hooks:
14+
- id: uv-lock
15+
name: uv lock
16+
description: Checks the validity of the uv.lock file.
17+
entry: uv lock
18+
language: system
19+
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
20+
pass_filenames: false
1421
- id: ruff
1522
name: ruff
1623
description: Run ruff linting
17-
entry: uv run ruff check --force-exclude
24+
entry: uv run --frozen ruff check --force-exclude
1825
language: system
1926
'types_or': [python, pyi]
2027
require_serial: true

0 commit comments

Comments
 (0)