Setup your environment, e.g. with venv:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txtSetup pre-commit:
pre-commit installAnd future commits will be automatically linted.
To run the tests, simply run from the root of the repo:
pytestTo run the API, change directory to the app folder, set your secret key env var, optionally make the docs accessible and start:
cd app
SECRET_KEY="your-very-secret-key" SHOW_DOCS=1 python main.py
To create a new release:
- Tag:
git tag v0.0.0 - Push:
git push --tagsto trigger build CI/CD - Create release on GH