Skip to content

Commit 5387122

Browse files
committed
Add uv-lock to pre-commit
1 parent 89becc8 commit 5387122

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/on-release-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# Run the pyproject-build cli tool from the Python build
3030
# package, and use the uv installer because it's blazing fast
3131
uvx --from build pyproject-build --installer uv
32-
uvx twine check --strict
32+
uvx twine check --strict dist/*
3333
3434
- name: Publish package distributions to PyPI
3535
uses: pypa/gh-action-pypi-publish@release/v1

.pre-commit-config.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
4-
hooks:
5-
- id: end-of-file-fixer
6-
- id: check-added-large-files
7-
- id: check-merge-conflict
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: end-of-file-fixer
6+
- id: check-added-large-files
7+
- id: check-merge-conflict
8+
- repo: https://github.com/astral-sh/uv-pre-commit
9+
# uv version.
10+
rev: 0.5.6
11+
hooks:
12+
# Update the uv lockfile
13+
- id: uv-lock

uv.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)