Python Forum

Full Version: Template for new Python projects - start your project the right way
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The tutorial goes through how to set up a new Python project with everything you need to keep the code consistent and high quality:

https://sourcery.ai/blog/python-best-practices/

It has how to set up black, isort, flake8, mypy, pytest and pre-commit to play nicely together, as well as using pipx and pipenv.

There's also a cookiecutter template so you can set up new projects straight away!
We like tutorial submissions, but normally they should be posted on this forum.
this site does look like it has merit though.
(Aug-02-2019, 01:37 AM)Larz60+ Wrote: [ -> ]this site does look like it has merit though.

A PEP8 straight jacket with a type checking ball gag? No thanks. And why do I need something to sort my imports?