Skip to content

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

chore: Remove linting from pre-commit hook (#17703)

Ben Bachemb2dac5951083
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 1219bd50f5..1d9e69681e 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -28,15 +28,6 @@ run_format_check() {
run_check "Formatting" pnpm run format:check
}
-run_lint() {
- if [ -n "${LANGFUSE_PRE_COMMIT_SKIP_LINT-}" ]; then
- echo "Skipping lint because LANGFUSE_PRE_COMMIT_SKIP_LINT is set."
- return 0
- fi
-
- run_check "Lint" pnpm run lint --filter=!ai-gateway
-}
-
# Check if the current branch is the protected branch
if [ "$current_branch" = "$protected_branch" ]; then
echo "🚨 You are about to commit to the $protected_branch branch. Are you sure? (y/n)"
@@ -44,7 +35,6 @@ if [ "$current_branch" = "$protected_branch" ]; then
if [ "$answer" != "${answer#[Yy]}" ]; then
# Commit approved, run checks
run_format_check
- run_lint
else
echo "Commit to $protected_branch branch has been canceled."
exit 1 # Commit will be blocked
@@ -53,4 +43,3 @@ fi
# If not the protected branch, run checks
run_format_check
-run_lint
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0ed74373cb..8735cd30c5 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -269,12 +269,7 @@ When you change the shared MCP setup:
pnpm run prepare # Sets up Husky pre-commit hooks for code formatting
```
- The pre-commit hook runs formatting and lint checks. To skip only the lint
- check for a commit, set `LANGFUSE_PRE_COMMIT_SKIP_LINT`, for example:
-
- ```bash
- LANGFUSE_PRE_COMMIT_SKIP_LINT=1 git commit -m "your commit message"
- ```
+ The pre-commit hook runs formatting checks.
CI still runs the required checks for pull requests.