File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 - name : detect method
3232 id : detect
3333 run : |
34- if test -f requirements-lint.txt ; then
35- echo "method=requirements" >> "$GITHUB_OUTPUT"
36- elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
34+ if test -f pyproject.toml ; then
3735 echo "method=pep735" >> "$GITHUB_OUTPUT"
3836 else
3937 echo "method=uvx" >> "$GITHUB_OUTPUT"
5654 RUFF_OUTPUT_FORMAT : github
5755 REUSE_OUTPUT_FORMAT : github
5856 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59- - name : pre-commit (requirements)
60- if : steps.detect.outputs.method == 'requirements'
61- run : |
62- uv pip install --system -r requirements-lint.txt
63- prek run --all-files --show-diff-on-failure
64- prek cache gc
65- env :
66- RUFF_OUTPUT_FORMAT : github
67- REUSE_OUTPUT_FORMAT : github
68- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6957 - name : diff
7058 run : git diff
7159 if : always()
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments