docs: 明确任务领取与导入安全规则
统一任务领取规则,current-state 只能展示按 06-tasks 顺序计算出的当前任务,当前下一个任务固定为 T-001。 明确 tests/ 与 unittest discover 的启用时机:T-006 前不因 tests 缺失判失败,T-006 后纯逻辑改动必须补测并运行。 补齐敏感文件和目录清单:config.json、config/ai_models.json、cmshopee.db、chrome_user_data_dir/、images/ 均须 gitignore 且不得提交。 定稿 Excel 导入容错策略:缺必需列拒绝整文件并记录 file_errors,单行脏数据逐行跳过并计入 invalid。
This commit is contained in:
@@ -53,6 +53,7 @@ cmshopee 是一个 Windows 本地桌面自动化工具(PySide6,5 Tab),
|
||||
- 做完即停,汇报验证结果,等待下一步指令。
|
||||
|
||||
如果代码实际状态和任务看板冲突,先说明冲突,不要擅自跳步。
|
||||
[`current-state.md`](current-state.md) 只能展示按本规则计算出的当前快照,不能把多个无依赖任务改成“任选”;若两者冲突,以 [`06-tasks.md`](06-tasks.md) 的顺序和状态为准。
|
||||
|
||||
## 版本边界
|
||||
|
||||
@@ -116,13 +117,15 @@ cmshopee 是一个 Windows 本地桌面自动化工具(PySide6,5 Tab),
|
||||
|
||||
```bash
|
||||
python -m py_compile *.py # 语法检查
|
||||
python -m unittest discover -s tests # 纯逻辑单元测试(tests 存在后)
|
||||
python -m unittest discover -s tests # 纯逻辑单元测试(T-006 完成且 tests/ 存在后)
|
||||
python prototypes/demo.py # 单账号闭环验证(分步,不提交)
|
||||
```
|
||||
|
||||
说明:
|
||||
|
||||
- T-006 前若 `tests/` 不存在,不运行 `unittest discover`,也不把该命令失败视为当前任务失败;在回复里说明测试基座待 T-006 建立。
|
||||
- T-006 完成后,纯逻辑改动必须补/更新 `tests/` 下的 unittest,并运行 `python -m unittest discover -s tests`。
|
||||
- 改 CDP / editor 逻辑后:在测试商品(ITEM_ID 51100639510)上跑 `prototypes/demo.py` 实测。
|
||||
- 改账号配置后:验证 SQLite 账号读写与 user-data-dir 创建;改应用设置后验证 `config.json` 读写。
|
||||
- 改 DB / Excel / prompts / appconfig 纯逻辑后:补或更新 `tests/` 下的 unittest。
|
||||
- 改 DB / Excel / prompts / appconfig 纯逻辑后:T-006 前做可行的手动/临时验证并记录;T-006 后补或更新 `tests/` 下的 unittest。
|
||||
- 如果命令当前不可运行(如 GUI 未建),在回复里如实说明。
|
||||
|
||||
Reference in New Issue
Block a user