From 5387122d9377b993a4ef9734237dbdda772f16a1 Mon Sep 17 00:00:00 2001 From: Damien Ayers Date: Fri, 6 Dec 2024 17:16:09 +1100 Subject: [PATCH] Add uv-lock to pre-commit --- .github/workflows/on-release-main.yml | 2 +- .pre-commit-config.yaml | 18 ++++++++++++------ uv.lock | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/on-release-main.yml b/.github/workflows/on-release-main.yml index a147240..da698cd 100644 --- a/.github/workflows/on-release-main.yml +++ b/.github/workflows/on-release-main.yml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecccce0..997b5ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/uv.lock b/uv.lock index 5a4fac8..715550e 100644 --- a/uv.lock +++ b/uv.lock @@ -477,7 +477,7 @@ wheels = [ [[package]] name = "odc-loader" -version = "0.2.0.dev0" +version = "0.3.0" source = { editable = "." } dependencies = [ { name = "affine" },