Skip to content

duarte-pompeu/my-python-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duarte's Python Template

A cookiecutter template to generate an opinionated Python template according to duarte-pompeu preferences. It includes:

  • pre-defined package requirements managed by poetry
  • Makefile with utilities, such as make format, make lint and make test
  • minimalistic support for docker and kubernetes

To initialize a project with this template:

  1. Install cookiecutter (if you don't have it yet)
  2. Install the project
  3. Run setup.sh to configure poetry and pyenv

1 - Install cookiecutter

I recommend installing with pipx (but pip also works):

pipx install cookiecutter

2 - Initialize the project

cookiecutter https://github.com/duarte-pompeu/my-python-template

3 - Run setup.sh

bash setup.sh