From d00355f9d670fa915fd5cd4f0ac422061951f55a Mon Sep 17 00:00:00 2001 From: Bryce Boe Date: Sun, 7 Jun 2026 14:35:55 -0700 Subject: [PATCH] Fix pre-commit_autoupdate install for dependency-group repos The consumer repos no longer define a dev extra; they use dependency groups. Install the project and its lint group (which provides pre-commit) with uv sync instead. The project itself is still needed because some repos' local hooks import it. --- .github/workflows/pre-commit_autoupdate.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-commit_autoupdate.yml b/.github/workflows/pre-commit_autoupdate.yml index c8373e1..1e2636f 100644 --- a/.github/workflows/pre-commit_autoupdate.yml +++ b/.github/workflows/pre-commit_autoupdate.yml @@ -14,16 +14,15 @@ jobs: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: persist-credentials: false - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - with: - python-version: 3.x - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 - name: Install dependencies - run: uv pip install --system pre-commit ".[dev]" + # The lint group provides pre-commit; the project itself is installed + # for repos whose local hooks import it. + run: uv sync --frozen --group lint - name: Update hooks - run: pre-commit autoupdate --freeze + run: uv run --no-sync pre-commit autoupdate --freeze - name: Run hooks - run: pre-commit run --all-files + run: uv run --no-sync pre-commit run --all-files continue-on-error: true - uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: