Skip to content

Commit

Permalink
Do offline uv-lock check in CI, online check manually (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 authored Feb 8, 2025
1 parent db1a10f commit 3f5d17c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ repos:
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.5.5"
hooks:
# Asserts that the lockfile is valid for pyproject.toml.
# If it fails, update the lockfile by running:
#
# pre-commit run -a --hook-stage manual uv-lock
#
# Or, if you have `uv` installed, run `uv lock`.
- id: uv-lock
args: ["--locked", "--offline"]
- id: uv-lock
stages: ["manual"]

- repo: https://github.com/google/yamlfmt
rev: v0.14.0
Expand Down
24 changes: 13 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f5d17c

Please sign in to comment.