- cookiecutter recommended to install with pipx.
- github cli
- github cli is setup with your credentials
gh auth login
orgh auth refresh
if ssh key already setup - setup github cli to allow repo creation
- setup github cli to allow repo deletion
gh auth refresh -h github.com -s delete_repo
- github cli is setup with your credentials
- [Optional] install rye
Run cookiecutter https://github.com/The-Red-Line-Podcast/templates
and follow the prompts.
- docker
- VScode
devcontainers
extension.
Any development should be done in the devcontainer!
- Create a new directory with a clearly identifiable name
- Create the repository structure with all config files
- Template the repo according to cookiecutter guide
- Copy the
hooks/
,.pre-commit-config.yaml
,Dockerfile
,.devcontainer
andpyproject.toml
from the reference_config_files - Add the new template to the
cookiecutter.json
in the repo root
{
"templates": {
"python-default": {
"path": "./python-default",
"title": "Python Default",
"description": "Default Redline Podcast default template"
},
"new-template-name":{
"path":"./path/to/new/template",
"title":"Title of new template",
"description":"Description of new template"
}
}
}
Run cookiecutter ./path/to/templates/repo
- Script that automatically copies reference config files to a new template directory
- Centralise hooks cookiecutter/cookiecutter#1593
- Add cleanup logic for when project rendering fails