chore: enhance basedpyright-check script to support path arguments (#25108)

This commit is contained in:
-LAN-
2025-09-04 09:34:50 +08:00
committed by GitHub
parent 56afb3fd64
commit 017a75aa44

View File

@@ -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