forked from clan/clan-core
pre-commit: don't fail silent
if mypy fails we don't know why
This commit is contained in:
parent
acc648fc6b
commit
745368242d
@ -46,7 +46,7 @@ git stash push --quiet --keep-index --message "treefmt pre-commit"
|
|||||||
trap restore_stash EXIT
|
trap restore_stash EXIT
|
||||||
|
|
||||||
# Run treefmt on the files in the index and record the result.
|
# Run treefmt on the files in the index and record the result.
|
||||||
nix fmt -- --no-cache --quiet "${commit_files[@]}"
|
nix fmt -- --no-cache "${commit_files[@]}"
|
||||||
|
|
||||||
# Check if there is a diff
|
# Check if there is a diff
|
||||||
git diff --name-only --exit-code
|
git diff --name-only --exit-code
|
||||||
|
Loading…
Reference in New Issue
Block a user