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:
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user