neilrjones / python-best-practices-cookiecutter

Python best practices project cookiecutter 🍪

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Best Practices Cookiecutter

Best practices cookiecutter template as described in this blogpost.

Features

Quickstart

# Install pipx if pipenv and cookiecutter are not installed
python3 -m pip install pipx
python3 -m pipx ensurepath

# Install pipenv using pipx
pipx install pipenv

# Use cookiecutter to create project from this template
pipx run cookiecutter gh:sourcery-ai/python-best-practices-cookiecutter

# Enter project directory
cd <repo_name>

# Initialise git repo
git init

# Install dependencies
pipenv install --dev

# Setup pre-commit and pre-push hooks
pipenv run pre-commit install -t pre-commit
pipenv run pre-commit install -t pre-push

About

Python best practices project cookiecutter 🍪

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

License:MIT License


Languages

Language:Python 63.7%Language:Dockerfile 36.3%