Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 628 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 628 Bytes

python-starter-project

Installation / Setup

# https://github.com/pyenv/pyenv#installation
# https://pipenv.readthedocs.io/en/latest/#install-pipenv-today
brew install pyenv pipenv
pyenv install 3.9.6

# from project dir
pipenv shell --python 3.9.6
pipenv install --dev

# make sure black pre-commit hooks are in
pre-commit install
pre-commit install --hook-type pre-push

Running tests

pipenv run pytest

Running code reformatter

pipenv run black starter_project

Running a Local Dev Server

pipenv run uvicorn starter_project.www.server:app --reload --port 5000