Skip to content

Commit af42337

Browse files
committed
more verbose
1 parent 993408a commit af42337

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/evergreen/check_precommit.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ if ! command -v pre-commit >/dev/null 2>&1; then
1313
fi
1414

1515
echo "Running pre-commit hooks..."
16+
echo "pre-commit version: $(pre-commit --version)"
1617

17-
# Run pre-commit - it may exit non-zero if it modifies files
18-
# We capture the exit code and handle it appropriately
19-
set +e
20-
pre-commit run --all-files
21-
pre_commit_exit=$?
22-
set -e
18+
# Run pre-commit with verbose output
19+
# --show-diff-on-failure shows what changed when hooks modify files
20+
pre-commit run --all-files --show-diff-on-failure --verbose
2321

2422
echo "Pre-commit hook has completed successfully."
2523

0 commit comments

Comments
 (0)