Skip to content

Commit

Permalink
Show diff on pre-commit failure (#248)
Browse files Browse the repository at this point in the history
When pre-commit fails in CI, show changes (if any) made by pre-commit
hooks.
  • Loading branch information
pbchekin authored Jan 12, 2024
1 parent a47163d commit 7a6c2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# If first run of yapf worked and made changes reset the tree to the original state
git reset --hard
python3 -m pre_commit run --all-files --verbose
python3 -m pre_commit run --show-diff-on-failure --color=always --all-files --verbose
- name: Save pip cache
if: ${{ hashFiles('.pip-cache') == '' }}
Expand Down

0 comments on commit 7a6c2d7

Please sign in to comment.