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