mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 06:29:44 +08:00
fix: make Ruff pre-commit hook fail on lint errors (#838)
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user