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:
parent
09ca561541
commit
2f0f9f5b76
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue