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: