mirror of
https://github.com/langgenius/dify.git
synced 2026-03-27 09:09:54 +08:00
chore(api): Disable preview rules of Ruff while running pre-commit hook (#15999)
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
# get the list of modified files
|
||||
files=$(git diff --cached --name-only)
|
||||
|
||||
@ -32,7 +33,7 @@ if $api_modified; then
|
||||
ruff check --fix ./api
|
||||
|
||||
# run Ruff linter checks
|
||||
ruff check --preview ./api || status=$?
|
||||
ruff check ./api || status=$?
|
||||
|
||||
status=${status:-0}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user