From 023441c50311a6e419cb13ab190a92889a80170c Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Fri, 27 Feb 2026 18:18:10 -0600 Subject: [PATCH] chore: switch to prek from pre-commit Many projects including the Python project itself have switched to prek due to better performance and better handling of sub-directories. Let's make the switch as well so that we can fix up some of the directory funkiness. --- .github/workflows/pre-commit.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c3a14f4e4..ff0249d23 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,16 +14,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 - id: setup-python - with: - python-version: '3.13' - cache: 'pip' - - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 - with: - path: ~/.cache/pre-commit - key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - - run: pip install pre-commit - - name: "run pre-commit" - run: | - pre-commit run --all-files --show-diff-on-failure + - uses: j178/prek-action@v1