# Install cookiecutter
python3 -m pip install --user cookiecutter
# Create a python template into current project
cookiecutter \
--directory python/direnv \
https://github.com/emersonmx/cookiecutters.git \
path=$PWD
# Create a python project
python -m venv .venv
git init
echo \
python/{direnv,editorconfig,makefile,build-system,project-setup,devdeps,pre-commit,isort,black,flake8,mypy,vulture} \
| tr ' ' '\n' \
| xargs -I {} \
cookiecutter \
-f \
--no-input \
https://github.com/emersonmx/cookiecutters.git \
--directory {} \
path=. project_name=$(basename $PWD)
- Language templates MUST HAVE a
path
variable.
- Use python to write the hooks.
- Use only the standard and cookiecutter libraries to write the hooks.
- Templates MUST FOLLOW good design decisions (use tests, dev tools, etc).