Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore(api): Disable preview rules of Ruff while running pre-commit hook (#15999)

QuantumGhoste5d6047fb49f
diff --git a/web/.husky/pre-commit b/web/.husky/pre-commit
index cca8abe27aa..a0d7df1687e 100755
--- a/web/.husky/pre-commit
+++ b/web/.husky/pre-commit
@@ -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}