From 1a4323e0577a884018c766ae6031f64db55eaa23 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 16 Mar 2026 07:11:33 +0100 Subject: [PATCH 1/2] Bump pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3cb34c3a55..724770991d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.2 + rev: v0.15.12 hooks: - id: ruff-check - repo: https://github.com/psf/black-pre-commit-mirror @@ -42,5 +42,5 @@ repos: - git+https://github.com/dask/zict # Increase this value to clear the cache on GitHub actions if nothing else in this file -# has changed. See also same variable in .github/workflows/test.yaml +# has changed. See also same variable in .github/workflows/tests.yaml # CACHE_NUMBER: 1 From 335612453c9e327bb00ebeacb713e390a469b93f Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 16 Mar 2026 07:21:09 +0100 Subject: [PATCH 2/2] =?UTF-8?q?pre-commit=20=E2=86=92=20prek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/workflows/ci-pre-commit.yml | 7 ++----- continuous_integration/environment-3.10.yaml | 2 +- continuous_integration/environment-3.11.yaml | 2 +- continuous_integration/environment-3.12.yaml | 2 +- continuous_integration/environment-3.13.yaml | 2 +- continuous_integration/environment-3.14.yaml | 2 +- 7 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f8e3506db6..8af6ef473d 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ Closes #xxxx - [ ] Tests added / passed -- [ ] Passes `pre-commit run --all-files` +- [ ] Passes `prek run --all-files` diff --git a/.github/workflows/ci-pre-commit.yml b/.github/workflows/ci-pre-commit.yml index 00540692dd..b928c315b7 100644 --- a/.github/workflows/ci-pre-commit.yml +++ b/.github/workflows/ci-pre-commit.yml @@ -8,11 +8,8 @@ on: jobs: checks: - name: pre-commit hooks + name: prek hooks runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.3 - - uses: actions/setup-python@v6 - with: - python-version: '3.12' - - uses: pre-commit/action@v3.0.1 + - uses: j178/prek-action@v1.1.1 diff --git a/continuous_integration/environment-3.10.yaml b/continuous_integration/environment-3.10.yaml index f3914e8ae9..ff40caa041 100644 --- a/continuous_integration/environment-3.10.yaml +++ b/continuous_integration/environment-3.10.yaml @@ -28,7 +28,7 @@ dependencies: - msgpack-python - netcdf4 - paramiko - - pre-commit + - prek - prometheus_client - psutil - pyarrow diff --git a/continuous_integration/environment-3.11.yaml b/continuous_integration/environment-3.11.yaml index 256999899d..3890d55bbe 100644 --- a/continuous_integration/environment-3.11.yaml +++ b/continuous_integration/environment-3.11.yaml @@ -25,7 +25,7 @@ dependencies: - msgpack-python - netcdf4 - paramiko - - pre-commit + - prek - prometheus_client - psutil - pyarrow=16.0 diff --git a/continuous_integration/environment-3.12.yaml b/continuous_integration/environment-3.12.yaml index e33c82a30e..1cfca2c838 100644 --- a/continuous_integration/environment-3.12.yaml +++ b/continuous_integration/environment-3.12.yaml @@ -25,7 +25,7 @@ dependencies: - msgpack-python - netcdf4 - paramiko - - pre-commit + - prek - prometheus_client - psutil - pyarrow diff --git a/continuous_integration/environment-3.13.yaml b/continuous_integration/environment-3.13.yaml index 110cb25daf..9297cbf0d3 100644 --- a/continuous_integration/environment-3.13.yaml +++ b/continuous_integration/environment-3.13.yaml @@ -24,7 +24,7 @@ dependencies: - msgpack-python - netcdf4 - paramiko - - pre-commit + - prek - prometheus_client - psutil - pyarrow diff --git a/continuous_integration/environment-3.14.yaml b/continuous_integration/environment-3.14.yaml index 72880404e4..31a68c4d0d 100644 --- a/continuous_integration/environment-3.14.yaml +++ b/continuous_integration/environment-3.14.yaml @@ -24,7 +24,7 @@ dependencies: - msgpack-python - netcdf4 - paramiko - - pre-commit + - prek - prometheus_client - psutil - pyarrow