type: 渐进式接入 Pyright 并类型化 ORM 模型

This commit is contained in:
yml2213
2026-08-30 19:44:01 +08:00
parent 13b5aedd1d
commit 17577ff734
8 changed files with 431 additions and 295 deletions
+6
View File
@@ -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 通过"