type: 渐进式接入 Pyright 并类型化 ORM 模型
This commit is contained in:
@@ -119,6 +119,9 @@ uv run --group dev pytest tests/test_cookie_operations.py
|
||||
./dev.sh format tests conftest.py
|
||||
./dev.sh format-check tests conftest.py
|
||||
|
||||
# 类型检查(当前为渐进式接入,先查看存量诊断)
|
||||
./dev.sh type-check
|
||||
|
||||
# 容器内回归(镜像内为构建时代码,改动后需重新构建)
|
||||
docker compose --profile test run --rm test
|
||||
```
|
||||
@@ -135,8 +138,9 @@ docker compose --profile test run --rm test
|
||||
./scripts/install-git-hooks.sh
|
||||
```
|
||||
|
||||
推送前自动跑全量测试,失败阻止推送(紧急绕过:`git push --no-verify`
|
||||
或 `SKIP_TESTS=1 git push`)。
|
||||
推送前自动跑全量测试,失败阻止推送。需要将 Pyright 作为推送门禁时,使用
|
||||
`TYPECHECK=1 git push`;紧急绕过可使用 `git push --no-verify` 或
|
||||
`SKIP_TESTS=1 git push`。
|
||||
|
||||
## 技术栈
|
||||
|
||||
|
||||
Reference in New Issue
Block a user