You will need the following installed on your system:
- Python 3.8+
- Pip
If you would like to update the api, please follow the instructions below.
-
Create a local virtual environment and activate it:
python -m venv .venv source .venv/bin/activate # linux .venv\Scripts\activate # windows
If you are using Anaconda, you can create a virtual environment with:
conda create -n fairhub-pipeline-dev-env python=3.11 conda activate fairhub-pipeline-dev-env
-
Install the dependencies:
pip install -r requirements.txt
-
Add your environment variables. An example is provided at
.env.example
cp .env.example .env
Make sure to update the values in
.env
to match your local setup. -
Format the code:
poe format_with_isort poe format_with_black
You can also run
poe format
to run both commands at once. -
Check the code quality:
poe typecheck poe pylint poe flake8
You can also run
poe lint
to run all three commands at once. -
To start the local server, run:
poe init # pick python poe dev
This runs
func start
with the--python
flag.
This work is licensed under MIT. See LICENSE for more information.