feat(T-001): 初始化 Python 项目骨架

- 建立 src/(main.py 最小可运行入口)、tests/(unittest 冒烟测试)、requirements.txt。
- 骨架阶段测试用标准库 unittest,零第三方依赖;pytest 留待后续按需引入。
- 文档占位符验证命令替换为真实命令(pytest -> unittest discover)。
- 同步 tasks.md(T-001 DONE)、progress.md、current-state.md。

验证:compileall OK;unittest 2 passed;python src/main.py exit=0。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
chengma
2026-06-24 17:02:15 +08:00
co-authored by Claude Opus 4.8
parent 541dfab967
commit 2863bf2750
11 changed files with 106 additions and 35 deletions
+5 -5
View File
@@ -41,7 +41,7 @@
- 绝不实现无配置、无二次校验、无金额上限的自动支付。
- 绝不记录支付密码、短信验证码、账号密码等敏感信息。
- 绝不调用、逆向或改造拼多多非公开接口。
- 自动支付必须显式开启,并在商品、SKU、数量、地址、金额校验通过后才能继续。
- 自动支付必须显式开启,并在商品、SKU、数量、地址、金额校验通过后才能继续。
- 遇到安全校验时进入 `待人工`,由运营在真机上处理。
## 5. 架构纪律
@@ -73,11 +73,11 @@
- [ ] 涉及 Android 自动化时,说明是否已用真机验证。
- [ ] 回复里如实说明跑了什么命令、结果如何。
计划命令,初始化后必须改成真实命令:
当前真实验证命令(Windows 用 `python`,Linux/WSL 用 `python3`):
```powershell
python -m pytest
python -m compileall src
python -m unittest discover -s tests -t .
python src/main.py
```
@@ -93,5 +93,5 @@ python src/main.py
问题要具体,说明你卡在哪里、有哪些选项、倾向哪个选项以及原因。