Skip to content
Python project template with Travis CI integration.
Dockerfile Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/my_project
tests/my_project_tests
.dockerignore
.editorconfig
.gitignore
.pre-commit-config.yaml
.travis.yml
Dockerfile
LICENSE
README.md
poetry.lock
pyproject.toml
setup.cfg

README.md

Python Project Template

Build Status

Simple template containing:

  • Poetry package
  • Pytest tests with coverage
  • Pre-Commit linting and git hooks
  • Project Dockerfile
  • Travis CI pipeline

Pre-Requisites

Ensure you have installed:

  • Python 3.7
  • Poetry

Getting Started

Clone this repository and install the project.

git clone https://github.com/CathalMullan/python_project_template.git
cd python_project_template/
poetry install

Poetry Tasks

Install git-hooks.

poetry run task hook

Run linters.

poetry run task lint

Run tests.

poetry run task test

Run linters and tests

poetry run task validate
You can’t perform that action at this time.