Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix: make Ruff pre-commit hook fail on lint errors (#838)

xuyua959798cd2ea1c
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b5dfec8c8..d72022f0a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -43,8 +43,8 @@ repos:
rev: v0.14.7
hooks:
- id: ruff
- # Added --quiet to suppress logs; --exit-zero makes it a "soft fail" if desired
- args: [--fix, --quiet, --exit-zero]
+ # Keep local fixes, but fail the hook when Ruff reports remaining violations.
+ args: [--fix, --quiet]
- id: ruff-format
args: [--quiet]