mirror of
https://github.com/langgenius/dify.git
synced 2026-05-21 17:20:25 +08:00
fix(dev): handle empty pyrefly target paths (#36325)
This commit is contained in:
@ -34,8 +34,16 @@ if [[ -f "$EXCLUDES_FILE" ]]; then
|
||||
fi
|
||||
|
||||
tmp_output="$(mktemp)"
|
||||
pyrefly_command=(
|
||||
uv run --directory api --dev pyrefly check
|
||||
"${pyrefly_args[@]}"
|
||||
)
|
||||
if (( ${#target_paths[@]} > 0 )); then
|
||||
pyrefly_command+=("${target_paths[@]}")
|
||||
fi
|
||||
|
||||
set +e
|
||||
uv run --directory api --dev pyrefly check "${pyrefly_args[@]}" "${target_paths[@]}" >"$tmp_output" 2>&1
|
||||
"${pyrefly_command[@]}" >"$tmp_output" 2>&1
|
||||
pyrefly_status=$?
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user