Make Pre-Commit-Hook Exit 0 While Using Ruff Check (#2427)

Modified gradio Layout
Refactor WebUI half-precision and GPU detection logic
This commit is contained in:
XXXXRT666
2025-06-05 10:46:05 +08:00
committed by GitHub
parent 2ff2cf5ba1
commit 05d44215f1
3 changed files with 611 additions and 535 deletions

View File

@@ -8,7 +8,7 @@ repos:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
args: [ --fix , "--exit-zero" ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]