Skip to content

Commit

Permalink
check uv lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp-ant committed Feb 3, 2025
1 parent ce06b62 commit a9ae382
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/check-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check uv.lock

on:
pull_request:
paths:
- "pyproject.toml"
- "uv.lock"
push:
paths:
- "pyproject.toml"
- "uv.lock"

jobs:
check-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Check uv.lock is up to date
run: uv lock --check
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ repos:
- id: ruff-format
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: local
hooks:
- id: uv-lock-check
name: Check uv.lock is up to date
entry: uv lock --check
language: system
files: ^(pyproject\.toml|uv\.lock)$
pass_filenames: false

0 comments on commit a9ae382

Please sign in to comment.