Archived
chore: 补齐 .gitignore 缺口,避免工具缓存被误提交
为什么:.pytest_cache/ 与 .ruff_cache/ 此前既不在忽略列表、也未被提交—— 跑一次 pytest 就会在 `git status` 里冒出来,一旦有人习惯性 `git add -A` 就会被带进版本库(.workbuddy/ 就是这样浮出来的)。同时补上 .pyright/。 另 _mkpkg.py 会在**项目根**写入打包标记 _pkg_ok.txt(内容为文件数/体积 或 public 标记),同样属于运行产物,一并忽略。
This commit is contained in:
1 parent
ad8c30d932
commit
961ee87511
1 file changed
+11
+11
@@ -9,6 +9,17 @@ __pycache__
|
||||
*.pyo
|
||||
*.pyd
|
||||
|
||||
# 工具缓存与本地工作目录——不进版本库,也不该进分发包
|
||||
# (.pytest_cache/.ruff_cache 此前漏配:跑一次测试就会在 git status 里冒出来,
|
||||
# 一旦有人习惯性 `git add -A` 就会被提交)
|
||||
.pytest_cache/
|
||||
.ruff_cache/
|
||||
.pyright/
|
||||
.workbuddy/
|
||||
|
||||
# _mkpkg.py 会在项目根写入打包标记文件(内容为文件数/体积或 public 标记)
|
||||
_pkg_ok.txt
|
||||
|
||||
# 运行时敏感数据与私有文档——公开包买家若将本项目纳入 git 管理,
|
||||
# 以下内容绝不能进版本库(用户数据库/网易云 Cookie/日志/审计文档)
|
||||
data/
|
||||
|
||||
Reference in new issue
Block a user