@@ -53,15 +53,13 @@ jobs:
5353 echo "method=requirements" >> "$GITHUB_OUTPUT"
5454 elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
5555 echo "method=pep735" >> "$GITHUB_OUTPUT"
56- elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
57- echo "method=pyproject" >> "$GITHUB_OUTPUT"
5856 else
5957 echo "method=uvx" >> "$GITHUB_OUTPUT"
6058 fi
6159 - name : pre-commit (PEP 735)
6260 if : steps.detect.outputs.method == 'pep735'
6361 run : |
64- uv run --only-group pre-commit pre-commit run --all --show-diff-on-failure
62+ uv run --only-group pre-commit pre-commit run --all-files --show-diff-on-failure
6563 uv run --only-group pre-commit pre-commit gc
6664 env :
6765 RUFF_OUTPUT_FORMAT : github
@@ -70,22 +68,17 @@ jobs:
7068 - name : pre-commit (uvx)
7169 if : steps.detect.outputs.method == 'uvx'
7270 run : |
73- uvx pre-commit run --all --show-diff-on-failure
71+ uvx pre-commit run --all-file --show-diff-on-failure
7472 uvx pre-commit gc
7573 env :
7674 RUFF_OUTPUT_FORMAT : github
7775 REUSE_OUTPUT_FORMAT : github
7876 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79- - name : Install dependencies
77+ - name : pre-commit (requirements)
8078 if : steps.detect.outputs.method == 'requirements'
81- run : uv pip install --system -r requirements-lint.txt
82- - name : Install dependencies
83- if : steps.detect.outputs.method == 'pyproject'
84- run : uv pip install --system "$(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)"
85- - name : pre-commit (installed)
86- if : steps.detect.outputs.method == 'requirements' || steps.detect.outputs.method == 'pyproject'
8779 run : |
88- pre-commit run --all --show-diff-on-failure
80+ uv pip install --system -r requirements-lint.txt
81+ pre-commit run --all-files --show-diff-on-failure
8982 pre-commit gc
9083 env :
9184 RUFF_OUTPUT_FORMAT : github
0 commit comments