Best practices cookiecutter template
- Testing with pytest
- Formatting with black
- Import sorting with isort
- Static typing with mypy
- Linting with flake8
- Git hooks that run all the above with pre-commit
- Deployment ready with Docker
- Continuous Integration with GitHub Actions
# Use cookiecutter to create project from this template
cookiecutter gh:adamwilborn/python-template
# Enter project directory
cd <repo_name>
# Initialise git repo
git init
# Install dependencies
poetry install
# Setup pre-commit and pre-push hooks
poetry run pre-commit install -t pre-commit
poetry run pre-commit install -t pre-push