mirror of
https://github.com/langgenius/dify.git
synced 2025-12-07 16:31:00 +00:00
17 lines
361 B
Bash
Executable File
17 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
|
cd "$SCRIPT_DIR/.."
|
|
|
|
# Get the path argument if provided
|
|
PATH_TO_CHECK="$1"
|
|
|
|
# run basedpyright checks
|
|
if [ -n "$PATH_TO_CHECK" ]; then
|
|
uv run --directory api --dev -- basedpyright --threads $(nproc) "$PATH_TO_CHECK"
|
|
else
|
|
uv run --directory api --dev -- basedpyright --threads $(nproc)
|
|
fi
|