From c52b5298368d10a674502bb44a0b68202c3d91cc Mon Sep 17 00:00:00 2001 From: onerandomusername Date: Sat, 8 Nov 2025 17:35:41 -0500 Subject: [PATCH] fix(pre-commit): ensure uv.lock is up-to-date with pyproject.toml --- .github/dependabot.yaml | 2 +- .pre-commit-config.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index c8047cf..89817a9 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,5 +1,5 @@ version: 2 -enable-beta-ecosystems: true + updates: - package-ecosystem: "uv" directory: "/" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d393f23..bdc0d66 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