Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(dx): add more steps for pre-commit (#12901)

Tobias Wochingera59630d6560b
diff --git a/.husky/pre-commit b/.husky/pre-commit
index f5554fd4c0..0576858393 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -11,13 +11,15 @@ if [ "$current_branch" = "$protected_branch" ]; then
echo "🚨 You are about to commit to the $protected_branch branch. Are you sure? (y/n)"
read -r answer < /dev/tty
if [ "$answer" != "${answer#[Yy]}" ]; then
- # Commit approved, check formatting. On files changed, block commit
+ # Commit approved, run checks
pnpm run format:check
+ pnpm run lint
else
echo "Commit to $protected_branch branch has been canceled."
exit 1 # Commit will be blocked
fi
fi
-# If not the protected branch, check formatting (on changed files, block)
+# If not the protected branch, run checks
pnpm run format:check
+pnpm run lint