pip install fastapi-serviceutilsFor more details and usage see: readthedocs
After cloning the repository initialize the development environment using:
make initThis will create the dev environment exampleservice/dev. Activate it using:
poetry shellNote:
Make sure to always activate the environment when you start working on the project in a new terminal using
poetry shellATTENTION: the environment should also be activated before using make.
After each change in dependencies defined at pyproject.toml run the
following to ensure the environment-definition and lock-file are up to date:
make updateTo run all pre-commit-hooks manually run:
make checkTo show summary about project run:
make infoThe project's developer documentation is written using Sphinx.
The documentation sources can be found in the docs subdirectory.
The API-documentation is auto-generated from the docstrings of modules, classes, and functions. We're using the Google docstring standard.
To generate the documentation, run:
make docsThe output for generated HTML files is in the docs/_build directory.
For testing we use pytest, for details see
Pytest Docs.
To run all tests:
make tests