docs: handle leftover untracked files in layout spec
This commit is contained in:
parent
ec3ae342fc
commit
f40822566e
|
|
@ -91,7 +91,7 @@ AutoRpa/
|
|||
|
||||
| 动作 | 细节 |
|
||||
| --- | --- |
|
||||
| 移动 | `git mv 选品流程 rpa_selection` |
|
||||
| 移动 | `git mv 选品流程 rpa_selection`。未跟踪残留(`.explore/`、`.magic/`、`output/结果` 下 html/png、本地 `.venv` / `.env`)不会跟着走,目录会留下。把需要的本地文件普通 `mv` 进 `rpa_selection/`,探测垃圾直接删,然后去掉空的 `选品流程/`。不要 `git add` `.explore` / `.magic` / 截图 |
|
||||
| `pyproject.toml` | `name = "rpa-selection"`;description 改成带新目录名。依赖、`requires-python`、pytest 配置不动 |
|
||||
| `README.md` | 所有 `cd 选品流程`、`` `选品流程/` `` 改成 `rpa_selection`;口径路径改 `docs/...` |
|
||||
| 代码 | 不改 import、不改 `PROJECT_ROOT = Path(__file__).resolve().parent` |
|
||||
|
|
@ -230,18 +230,12 @@ default = true
|
|||
|
||||
## 7. `.gitignore`
|
||||
|
||||
现有选品相关行整段替换为:
|
||||
`选品流程` 出现在两处,按前缀替换,不要当成一整段覆盖:
|
||||
|
||||
```
|
||||
!rpa_selection/.vscode/
|
||||
!rpa_selection/.vscode/**
|
||||
rpa_selection/secrets.json
|
||||
rpa_selection/data/.auth/
|
||||
rpa_selection/output/结果/*.xlsx
|
||||
rpa_selection/output/结果/*.txt
|
||||
```
|
||||
1. 顶部 `.vscode` 例外:`!选品流程/.vscode/` → `!rpa_selection/.vscode/`(两行)
|
||||
2. 底部凭据与产物:`选品流程/secrets.json` 等四行,前缀改 `rpa_selection/`
|
||||
|
||||
其余规则不动。
|
||||
其余规则不动。根 README 的代码入口表仍保留 `rpa_yisaiqi` 一行,标明过渡;「五包」指 oms + 四个作业,不是把艺赛旗从入口拿掉。
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -266,7 +260,7 @@ cd rpa_selection && uv run pytest -v
|
|||
|
||||
## 9. 实施顺序
|
||||
|
||||
1. `git mv 选品流程 rpa_selection`,改该包 `pyproject.toml` 与 README
|
||||
1. `git mv 选品流程 rpa_selection`;按 5.1 处理未跟踪残留,改该包 `pyproject.toml` 与 README
|
||||
2. 建三个占位包并 `git add`
|
||||
3. 按第 6 节:已跟踪文件 `git mv`,未跟踪文件 `mv` 后 `git add`;重写 `docs/README.md`
|
||||
4. 写根 `README.md` 并 `git add`(该文件当前未跟踪);改 `rpa_oms/README.md`、`rpa_yisaiqi/README.md`、`.gitignore`、搬过来的现行口径
|
||||
|
|
|
|||
Loading…
Reference in New Issue