Skip to content

Commit

Permalink
Add uv-lock to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
omad committed Dec 6, 2024
1 parent 89becc8 commit 5387122
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# Run the pyproject-build cli tool from the Python build
# package, and use the uv installer because it's blazing fast
uvx --from build pyproject-build --installer uv
uvx twine check --strict
uvx twine check --strict dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
18 changes: 12 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.6
hooks:
# Update the uv lockfile
- id: uv-lock
2 changes: 1 addition & 1 deletion uv.lock

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

0 comments on commit 5387122

Please sign in to comment.