Member-only story
Python HOW: Using Poetry, Make, and pre-commit-hooks to Setup a Repo Template for your Team
Bring consistency, rigour, and best practices to your messy data science team

Last update 05 Aug 2022
If part of your job is to constantly poke your fellow data scientist to isolate projects environments, updating requirements, cleaning code, writing consistent docstrings, etc., then you should definitely follow along 💊
All the work shown here is for Windows and PowerShell (PS) but you can adapt it for Mac and your favourite Command Line Interface (CLI)
Template is available on GitHub
1. Prerequisites
You need to have python, Make, and Poetry installed on your machine
Install Python 🐍
Download the latest Python 3.9 releases for Windows. Select Customize installation and mark py launcher for installation
You can now use py launcher in the CLI to list all installed versions of python (you can have as many as you like), and to use a specific version of python: