From dff7515b090affe143c3697abeed2380f28c784e Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Sat, 29 Mar 2025 16:29:08 -0700 Subject: [PATCH] Autofix PRs with pre-commit CI --- .github/workflows/update-all-review-data.yml | 4 ---- .github/workflows/update-contribs-reviews.yml | 3 --- .pre-commit-config.yaml | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/update-all-review-data.yml b/.github/workflows/update-all-review-data.yml index cff8e625..cc3d8c69 100644 --- a/.github/workflows/update-all-review-data.yml +++ b/.github/workflows/update-all-review-data.yml @@ -25,10 +25,6 @@ jobs: update-contributors --update update_all update-reviews update-review-teams - - name: Run pre-commit - uses: pre-commit/action@v3.0.1 - with: - extra_args: --files _data/packages.yml _data/contributors.yml - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: diff --git a/.github/workflows/update-contribs-reviews.yml b/.github/workflows/update-contribs-reviews.yml index 64ca447b..b6e34828 100644 --- a/.github/workflows/update-contribs-reviews.yml +++ b/.github/workflows/update-contribs-reviews.yml @@ -30,9 +30,6 @@ jobs: update-reviews update-review-teams - - name: run precommit hooks - uses: pre-commit/action@v3.0.1 - continue-on-error: true - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af02f085..c401e33a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ # - Register git hooks: pre-commit install --install-hooks ci: - autofix_prs: false + autofix_prs: true #skip: [flake8, end-of-file-fixer] autofix_commit_msg: | '[pre-commit.ci 🤖] Apply code format tools to PR'