From bdbfb905cd7c1bc2643f1141a2386a3ee03eeac6 Mon Sep 17 00:00:00 2001 From: Bryce Boe Date: Sun, 14 Jun 2026 21:53:15 -0700 Subject: [PATCH] Skip no-commit-to-branch hook in CI The CI lint job runs pre-commit on the main branch, where the no-commit-to-branch guard always fails. It is a local-only safeguard, so skip it in CI (mirroring pre-commit.ci's default behavior). --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b15cd68..a172af8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,8 @@ jobs: fetch-depth: 0 # hatch-vcs needs tags to build the project for pyright - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 - run: uvx pre-commit run --all-files + env: + SKIP: no-commit-to-branch # this guard is local-only; CI runs on main test: name: Test on Python ${{ matrix.python-version }}