git init example
cd example/
echo "# Example" > README.md
git add .
git commit -m "Start project"
This is a script to simplify the usage of cookiecutter on current dir. View
curl -fLw '\n' https://www.gitignore.io/api/python > .gitignore
git add .
git commit -m "Add gitignore"
python -m venv .venv
# or
virtualenv .venv
# with poetry
poetry init
poetry install
# venv activation for pip or for poetry in project venv
source .venv/bin/activate
# venv activation for poetry
poetry shell
# or
source $(poetry env info --path)/bin/activate
cocu python/devdeps
./install_devdeps.py
(cat << EOF
python/pre-commit
python/editorconfig
python/direnv
python/isort
python/black
python/flake8
python/mypy
python/vulture
python/invoke/run
python/invoke/format
python/invoke/lint
python/invoke/tests
python/hello_world
python/tests
EOF
) | xargs -I {} cocu "{}" use_pre_commit=true
pre-commit install
direnv allow .