#!/bin/bash

set -e

if [ "$SKIP_LINT" -ne 1 ]; then
    echo 'Running linting...'
    yamllint -s docker-compose.yaml
    ruff check src/ tests/ config.py
else
    echo 'Skipping linting...'
fi

echo 'Running tests...'
python -m pytest $TEST_ARGS tests/ 

echo 'Done!'
