From 0988504ab0671b38300ba13e7857b37a63cc4991 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Wed, 13 May 2026 15:31:06 +0200 Subject: [PATCH] Update pre-commit update workflow We now use `pre-commit-update` rather than `pre-commit autoupdate` to avoid getting PRs for non-release versions --- .github/workflows/pre_commit_update_workflow.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre_commit_update_workflow.yml b/.github/workflows/pre_commit_update_workflow.yml index 619c662203..ebedfe8f8d 100644 --- a/.github/workflows/pre_commit_update_workflow.yml +++ b/.github/workflows/pre_commit_update_workflow.yml @@ -28,8 +28,8 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - - name: Install pre-commit - run: pip install pre-commit + - name: Install pre-commit and pre-commit-update + run: pip install pre-commit pre-commit-update - name: Apply and commit updates run: | @@ -39,7 +39,8 @@ jobs: git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git checkout -b update-pre-commit-deps - pre-commit autoupdate + # pre-commit-update doesn't try to include non-release versions + pre-commit-update git add . # Either there are changes, in which case we commit them, or there are no changes, # in which case we can skip the push & pr-create jobs