5
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2025-11-07 18:56:55 +00:00

fix: run pre-commit using uvx

This commit is contained in:
Matthias Schoettle 2025-02-17 02:23:14 +00:00
parent 09ca561541
commit 2f0f9f5b76

View file

@ -8,13 +8,9 @@ inputs:
runs:
using: composite
steps:
- run: uv pip install pre-commit
shell: bash
- run: uv pip freeze
shell: bash
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: uv run pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
- run: uvx pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
shell: bash