type: 渐进式接入 Pyright 并类型化 ORM 模型
This commit is contained in:
@@ -38,6 +38,12 @@ if [ "${#python_files[@]}" -gt 0 ]; then
|
||||
echo "[pre-push] Python 格式通过"
|
||||
fi
|
||||
|
||||
if [ "${TYPECHECK:-0}" = "1" ]; then
|
||||
echo "[pre-push] 运行 Pyright 类型检查..."
|
||||
uv run --group dev pyright
|
||||
echo "[pre-push] Pyright 通过"
|
||||
fi
|
||||
|
||||
echo "[pre-push] 运行 pytest..."
|
||||
./dev.sh test -q
|
||||
echo "[pre-push] pytest 通过"
|
||||
|
||||
Reference in New Issue
Block a user