From 6c816671f187298a0484df43fc9e52782267fd62 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Mon, 30 Nov 2026 20:43:39 -0600 Subject: [PATCH] ci: run every pre-commit hook in CI Scope no-commit-to-branch to pre-push instead of skipping it with SKIP. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 2 -- .github/workflows/pre-commit.yml | 2 -- .pre-commit-config.yaml | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81df4d2..418fcb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,6 @@ jobs: python-version: "3.15.2" - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 - env: - SKIP: no-commit-to-branch release: needs: [pre-commit] diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 61c330a..758959f 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,8 +19,6 @@ jobs: python-version: "3.15.2" - name: Run pre-commit - env: - SKIP: no-commit-to-branch run: | python -m pip install pre-commit pre-commit run --show-diff-on-failure --color=always --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f25a6a0..26d2d77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,7 @@ repos: - id: trailing-whitespace - id: no-commit-to-branch args: ['--branch', 'master'] + stages: [pre-push] - repo: https://github.com/rhysd/actionlint rev: v1.7.7