Open
Conversation
Replace Cookiecutter with Copier for template generation, gaining support
for template updates (`copier update`) and conditional file generation.
Key changes:
- cookiecutter.json → copier.yml with typed variables and validation
- Template directory restructured to template/ subdirectory
- Hooks replaced with Copier tasks (tasks/post_generate.py)
- Add modular CD pipeline: GitHub Actions or Homelab (GitLab + Portainer)
- VS Code settings (incl. Copilot toggle) generated by post-gen task
Bugs fixed:
- Add [build-system] to template pyproject.toml
- Add __init__.py to template package directory
- Fix GitHub Actions ${{ }} syntax with {% raw %} blocks
- Remove dead Python 2 code, stale .pylintrc, commented prettier block
- Remove dead PIP env vars from Dockerfile, pin uv version
- Remove redundant PLR ruff rule
Test improvements:
- Session-scoped fixture (7s vs regenerating per test)
- New tests for variable rendering, workflow content, CD pipeline variants
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Change [project.optional-dependencies] to [dependency-groups] so `uv sync --dev` actually installs dev dependencies - Add libatomic1 to root Dockerfile for pyright's Node.js binary Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Root CI: test against 3.12, 3.13, 3.14, and 3.x with fail-fast: false - Template CI: test chosen version + 3.x with allow-prereleases - Add 3.14 to copier.yml python_version choices Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
copier updatesupport (keep generated projects in sync with template changes) and conditional file generation[build-system], dead Python 2 code, broken_copy_without_render, stale.pylintrc, dead PIP env vars, unpinned uv in DockerfileWhat changed
cookiecutter.jsoncopier.ymlwith types & validation{{cookiecutter.directory_name}}/template/subdirectoryhooks/pre_gen_project.py+hooks/post_gen_project.pytasks/post_generate.pycopier update${{ }}_copy_without_render{% raw %}blocks.gitignoreexclusion)Usage after merge
Test plan
uv run pytest— 10/10 integration tests passuv run ruff check . && ruff format --check .— cleanuv run pyright— 0 errorscd_pipeline=none— no deploy filescd_pipeline=github-actions—deploy.ymlpresentcd_pipeline=homelab-gitlab—.gitlab-ci.ymlpresent🤖 Generated with Claude Code