From 017a75aa444623f42b5516d211c3d7b9dcf2e1a8 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Thu, 4 Sep 2025 09:34:50 +0800 Subject: [PATCH] chore: enhance basedpyright-check script to support path arguments (#25108) --- dev/basedpyright-check | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev/basedpyright-check b/dev/basedpyright-check index 267ef2a52..ef58ed1f5 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