kencx / python-template

Personal Python project template with Cookiecutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-template

Cookiecutter template for quick setup of Python projects.

Included

  • Package management with pip-tools
  • pre-commit hooks
  • Linting with flake8, black, isort
  • Type Checking with mypy
  • Tests with pytest
  • CI with Github Actions

Usage

Install cookiecutter with pipx

$ pipx install cookiecutter

Set up a new project with this template

$ cookiecutter git+ssh://git@github.com/kencx/python-template.git

# pyproject.toml branch
$ cookiecutter git+ssh://git@github.com/kencx/python-template.git -c pyproject.toml

Todo

  • Consider [nox](https://nox.thea.codes/en/stable/) or tox
  • Add Build workflow

About

Personal Python project template with Cookiecutter


Languages

Language:Makefile 90.1%Language:Python 9.9%