Python best practices for 2021
Describes a setup that uses poetry, black, flake8, pytest, mypy and new to me
isort to sort imports.
The Fast track section has a TL;DR of how to create that setup.
I also really like this intro to poetry: Package Python Projects the Proper Way with Poetry