Skip to content

AI-READI/fairhub-pipeline

Repository files navigation

Azure Function Pipelines

Getting started

Prerequisites/Dependencies

You will need the following installed on your system:

  • Python 3.8+
  • Pip

Setup

If you would like to update the api, please follow the instructions below.

  1. 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
  2. Install the dependencies:

    pip install -r requirements.txt
  3. 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.

  4. Format the code:

    isort function_app.py
    black function_app.py
  5. Check the code quality:

    mypy function_app.py
    pylint function_app.py
    flake8 function_app.py

License

This work is licensed under MIT. See LICENSE for more information.