Skip to content

Commit

Permalink
pre-commit: show diff on failure
Browse files Browse the repository at this point in the history
problem: in CI we can't see what formatting was changed by the hooks

solution: add the `--show-diff-on-failure` flag so we can see what
happened in case it doesn't repro easily elsewhere
  • Loading branch information
trws committed Aug 12, 2024
1 parent 6d2dc56 commit e645365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: install linting and formatting deps
run: pip install -r scripts/requirements-dev.txt
- name: format and linting checks
run: pre-commit run --all-files
run: pre-commit run --all-files --show-diff-on-failure

python-lint:
name: python lint
Expand Down

0 comments on commit e645365

Please sign in to comment.