Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.21 KB

README.md

File metadata and controls

72 lines (51 loc) · 1.21 KB

Python Template Project

This is an opinionated way to structure a Python project using a number of productivity tools:

Requirements

These software packages must be installed prior to using this repo:

  • Python
  • bash
  • curl
  • git
  • poetry
  • pyenv

Usage

This describes how to run the demo code in this project:

make install
make

Development

Virtual environment

poetry shell
poetry install

Linter

make lint

Run tests

make test
make coverage

Install pre-commit hook

The Git pre-commit hook rules are defined in .pre-commit-config.yaml

poetry shell
pre-commit install

Git check

Check if the code can pass a git pre-commit hook.

make check