From d1a164f754edda69d479aa814a6e8e70ab071500 Mon Sep 17 00:00:00 2001 From: Benjamin Steinwender Date: Thu, 12 Mar 2026 21:04:30 +0100 Subject: [PATCH] switch to prek --- .github/workflows/pre-commit.yml | 9 ++++++--- ci-task.sh | 8 -------- 2 files changed, 6 insertions(+), 11 deletions(-) delete mode 100755 ci-task.sh diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 623718e..11f10bb 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -10,6 +10,9 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - uses: astral-sh/setup-uv@v7 - - run: ./ci-task.sh + - name: Checkout code + uses: actions/checkout@v6 + - name: Run pre-commit checks + uses: j178/prek-action@v1 + with: + extra-args: '--all-files' diff --git a/ci-task.sh b/ci-task.sh deleted file mode 100755 index a6215b7..0000000 --- a/ci-task.sh +++ /dev/null @@ -1,8 +0,0 @@ -#/usr/bin/env bash - -set -e - -uv venv venv --allow-existing -. venv/bin/activate -uv pip install pre-commit -uv run pre-commit run --all-files