Member-only story

Python HOW: Using Poetry, Make, and pre-commit-hooks to Setup a Repo Template for your Team

Gabriel Harris Ph.D.
7 min readAug 5, 2022

--

Bring consistency, rigour, and best practices to your messy data science team

Photo by Scott McNiel from Pexels

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:

--

--

Gabriel Harris Ph.D.
Gabriel Harris Ph.D.

Written by Gabriel Harris Ph.D.

I’m an End-to-End Lead Data Scientist and Data Science Manager. My articles are love letters to my future self

Responses (2)

Write a response