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: enhance basedpyright-check script to support path arguments (#25108)

-LAN-017a75aa4446
diff --git a/dev/basedpyright-check b/dev/basedpyright-check
index 267ef2a5223..ef58ed1f579 100755
--- a/dev/basedpyright-check
+++ b/dev/basedpyright-check
@@ -5,5 +5,12 @@ set -x
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
cd "$SCRIPT_DIR/.."
+# Get the path argument if provided
+PATH_TO_CHECK="$1"
+
# run basedpyright checks
-uv run --directory api --dev basedpyright
+if [ -n "$PATH_TO_CHECK" ]; then
+ uv run --directory api --dev basedpyright "$PATH_TO_CHECK"
+else
+ uv run --directory api --dev basedpyright
+fi