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: remove ty type checker from reformat script and pre-commit hooks (#25021)

-LAN-f540d0b74708
diff --git a/dev/reformat b/dev/reformat
index 9e4f5d2a595..71cb6abb1e3 100755
--- a/dev/reformat
+++ b/dev/reformat
@@ -14,8 +14,5 @@ uv run --directory api --dev ruff format ./
# run dotenv-linter linter
uv run --project api --dev dotenv-linter ./api/.env.example ./web/.env.example
-# run ty check
-dev/ty-check
-
# run mypy check
dev/mypy-check
diff --git a/web/.husky/pre-commit b/web/.husky/pre-commit
index 55a81249386..2ad3922e99d 100644
--- a/web/.husky/pre-commit
+++ b/web/.husky/pre-commit
@@ -41,15 +41,6 @@ if $api_modified; then
echo "Please run 'dev/reformat' to fix the fixable linting errors."
exit 1
fi
-
- # run ty checks
- uv run --directory api --dev ty check || status=$?
- status=${status:-0}
- if [ $status -ne 0 ]; then
- echo "ty type checker on api module error, exit code: $status"
- echo "Please run 'dev/ty-check' to check the type errors."
- exit 1
- fi
fi
if $web_modified; then