From ade0da46583491cfda72357694c14fd82a78fec8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 May 2026 13:44:48 +0000 Subject: [PATCH 1/2] Initial plan From 0b089f511bf02dd2fa26356b361e1e085701b494 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 May 2026 13:46:14 +0000 Subject: [PATCH 2/2] Use pre-commit-update instead of pre-commit autoupdate Agent-Logs-Url: https://github.com/MPAS-Dev/MPAS-Tools/sessions/5ac88109-69c0-4120-9ad2-fff632e28851 Co-authored-by: xylar <4179064+xylar@users.noreply.github.com> --- .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 3b2214ad2..252daa739 100644 --- a/.github/workflows/pre_commit_update_workflow.yml +++ b/.github/workflows/pre_commit_update_workflow.yml @@ -35,12 +35,12 @@ jobs: create-args: >- python=${{ env.PYTHON_VERSION }} - - name: Install pre-commit and gh + - name: Install pre-commit, pre-commit-update and gh run: | eval "$(micromamba shell hook --shell bash)" micromamba activate pre_commit_dev # permissions issue with gh 2.76.0 - conda install -y pre-commit "gh !=2.76.0" + conda install -y pre-commit pre-commit-update "gh !=2.76.0" gh --version - name: Apply and commit updates @@ -53,7 +53,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 . # The second command will fail if no changes were present, so we ignore it git commit -m "Update pre-commit dependencies" || ( echo "UP_TO_DATE=true" >> "$GITHUB_ENV")