Installation

First, clone DetectMateService and navigate into the repository:

git clone https://github.com/ait-detectmate/DetectMateService.git
cd DetectMateService

We recommend using uv to manage the environment and dependencies.

1. Create and activate a virtual environment with uv

uv venv
source .venv/bin/activate

2. Install the project

uv pip install .

Alternative setup with pip

If you prefer plain pip, you can set things up like this instead:

# Create a virtual environment
python -m venv .venv
# Activate it
source .venv/bin/activate
# Install the project in editable mode with dev dependencies
pip install .

Developer setup

For development, you can install with optional dependencies:

pip install -e ".[dev]"

We recommend using prek to manage Git pre-commit hooks. prek is configured via the existing .pre-commit-config.yaml and can be installed as part of the dev extras. To ensure pre-commit hooks run before each commit, run:

prek install