Skip to content

Commit 89b3362

Browse files
authored
Show diff on pre-commit failure in CI (#133)
2 parents e07e5cf + 4eff5b7 commit 89b3362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ allowlist_externals =
9494
{% if sphinx %} sphinx-build
9595
sphinx-autobuild
9696
{% endif %}commands =
97-
pre-commit: pre-commit run --all-files {posargs}
97+
pre-commit: pre-commit run --all-files --show-diff-on-failure {posargs}
9898
type-checking: {{ type_checker }} src tests {posargs}
9999
tests: pytest --cov={{ package_name }} --cov-report term --cov-report xml:cov.xml {posargs}
100100
{% if sphinx %} docs: sphinx-{posargs:build -EW --keep-going} -T docs build/html

0 commit comments

Comments
 (0)