pre-commit: don't fail silent
All checks were successful
build / test (pull_request) Successful in 22s

if mypy fails we don't know why
This commit is contained in:
Jörg Thalheim 2023-08-24 11:30:19 +02:00
parent acc648fc6b
commit 745368242d

View File

@ -46,7 +46,7 @@ git stash push --quiet --keep-index --message "treefmt pre-commit"
trap restore_stash EXIT
# 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
git diff --name-only --exit-code