Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 719 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 719 Bytes

python-poetry-template

How this project was created

Install

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

source $HOME/.poetry/env

Initialize new project

poetry new python-poetry-template

What about pre existing projects?

Initialising a pre-existing project

Activate virtual env

poetry shell

Install dependencies

poetry install

Run Tests

poetry run pytest

Setting up the precommit hook

poetry run pre-commit sample-config > .pre-commit-config.yaml
poetry run pre-commit install