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:
xuyua9
2026-08-16 19:10:29 +08:00
committed by GitHub
parent cbc6538273
commit 59798cd2ea

View File

@@ -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]