Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
- name: detect method
id: detect
run: |
if test -f requirements-lint.txt ; then
echo "method=requirements" >> "$GITHUB_OUTPUT"
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
if test -f pyproject.toml ; then
echo "method=pep735" >> "$GITHUB_OUTPUT"
else
echo "method=uvx" >> "$GITHUB_OUTPUT"
Expand All @@ -56,16 +54,6 @@ jobs:
RUFF_OUTPUT_FORMAT: github
REUSE_OUTPUT_FORMAT: github
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: pre-commit (requirements)
if: steps.detect.outputs.method == 'requirements'
run: |
uv pip install --system -r requirements-lint.txt
prek run --all-files --show-diff-on-failure
prek cache gc
env:
RUFF_OUTPUT_FORMAT: github
REUSE_OUTPUT_FORMAT: github
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: diff
run: git diff
if: always()
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/pull_requests.yaml

This file was deleted.

Loading