Skip to content

Commit 3e9e2b3

Browse files
committed
Refactor prek checks in CI workflow for improved clarity and functionality
1 parent a24f9b8 commit 3e9e2b3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/main.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@ jobs:
5050
echo "::add-matcher::.github/workflows/matchers/mypy.json"
5151
echo "::add-matcher::.github/workflows/matchers/python.json"
5252
53-
- name: Apply all prek hooks
54-
run: uv run prek run -a
53+
- name: Run prek (pre-commit checks)
54+
env:
55+
SKIP: ${{ github.ref == 'refs/heads/main' && 'no-commit-to-branch' || '' }}
56+
run: uv run prek run --show-diff-on-failure --color=always --all-files

0 commit comments

Comments
 (0)