chore: enhance basedpyright-check script to support path arguments (#25108)
This commit is contained in:
parent
56afb3fd64
commit
017a75aa44
1 changed files with 8 additions and 1 deletions
|
|
@ -5,5 +5,12 @@ set -x
|
||||||
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
||||||
cd "$SCRIPT_DIR/.."
|
cd "$SCRIPT_DIR/.."
|
||||||
|
|
||||||
|
# Get the path argument if provided
|
||||||
|
PATH_TO_CHECK="$1"
|
||||||
|
|
||||||
# run basedpyright checks
|
# 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue