DSH: __pycache__/ в .gitignore репозитория #55
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Проблема
bash tests/run.shиdsh/tests/run.shзапускают python-скрипты изdocs/retro/scripts/, что создаёт untrackeddocs/retro/scripts/__pycache__/в основном checkout..gitignoreего не покрывает, а guard-main не даёт удалить файл в репозитории на main — main выглядит грязным, иretro_leftovers.pyсчитает это сигналом «грязный main».Что сделать
__pycache__/(и*.pyc) в.gitignoreрепозитория;git check-ignore -v docs/retro/scripts/__pycache__/x.pycсрабатывает;project-template/gitignoreдля проектов, подключённых обвязкой.Приёмка
tests/run.shиdsh/tests/run.shgit statusв main чистый;bash tests/run.shзелёный (630/630).Закрыто в PR #57 (merge).
__pycache__/и*.pycв.gitignore; после прогона тестов дерево в main чистое,git check-ignoreподтверждает.