Skip to content

avnes/python-template-project

Repository files navigation

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

About

A template project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published