Skip to content

Commit f27f46e

Browse files
authored
Update pre-commit workflow set --show-diff-on-failure (#2487)
Without this flag, when a hook fails because it modified files, pre-commit will simply indicate that files were modified and the hook failed, without showing the specific changes. The developer would then have to manually run git diff or inspect the files to see what happened
1 parent 87d29df commit f27f46e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ jobs:
5757
path: ~/.cache/pre-commit
5858
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
5959
- name: Run pre-commit
60-
run: pre-commit run --color=always --all-files
60+
run: pre-commit run --color=always --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)