#!/bin/bash

set -e

source .venv/bin/activate

rm -rf reports/*

echo "Running linting..."
ruff format --check --diff
ruff check

echo "Running type checking..."
ty check

echo "Running unit tests"
pytest tests/unit \
    --cov notifications \
    --cov-report xml:reports/coverage.xml \
    --junitxml=reports/pyunit.xml
