aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2025-11-09 15:35:21 +0100
committerGravatar GitHub <[email protected]>2025-11-09 15:35:21 +0100
commit19315cfbf394e2c970d5e3a565e1b54c01bba30f (patch)
tree26d09a0ddf0426399658cbf3063c4596331c6d5c
parentMerge pull request #1566 from onerandomusername/qt/bot-quick-fix (diff)
parentRemove enable-beta-ecosystems from dependabot config (diff)
Merge pull request #1567 from onerandomusername/qt/check-uv-lockHEADmain
chore: assert uv lock is locked in ci and pre-commit
-rw-r--r--.github/dependabot.yml2
-rw-r--r--.github/workflows/lint-test.yaml2
-rw-r--r--.pre-commit-config.yaml9
3 files changed, 10 insertions, 3 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 3916e889..cdf639c1 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,5 +1,5 @@
version: 2
-enable-beta-ecosystems: true
+
updates:
- package-ecosystem: "uv"
directory: "/"
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
index 159e6fd7..54be8e6c 100644
--- a/.github/workflows/lint-test.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -19,7 +19,7 @@ jobs:
activate-environment: true
- name: Install dependencies
- run: uv sync --frozen --group lint --group test
+ run: uv sync --locked --group lint --group test
# Start the database early to give it a chance to get ready before
# we start running tests.
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index acae72fd..7f379ad0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,9 +12,16 @@ repos:
args: [--markdown-linebreak-ext=md]
- 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: This hook runs ruff within our project's environment.
- entry: uv run ruff check --force-exclude
+ entry: uv run --frozen ruff check --force-exclude
language: system
types: [python]