We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993408a commit af42337Copy full SHA for af42337
scripts/evergreen/check_precommit.sh
@@ -13,13 +13,11 @@ if ! command -v pre-commit >/dev/null 2>&1; then
13
fi
14
15
echo "Running pre-commit hooks..."
16
+echo "pre-commit version: $(pre-commit --version)"
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
+# Run pre-commit with verbose output
+# --show-diff-on-failure shows what changed when hooks modify files
+pre-commit run --all-files --show-diff-on-failure --verbose
23
24
echo "Pre-commit hook has completed successfully."
25
0 commit comments