#!/usr/bin/env bash

set -e

export RUFF_CACHE_DIR=/tmp/.ruff_cache

echo 'Running linting...'
poetry run yamllint -s docker-compose.yml
poetry run ruff check .
echo 'Running formatter check...'
poetry run ruff format . --diff --no-cache

echo 'Running mypy...'
poetry run mypy --cache-dir=/dev/null conftest.py config.py fixtures tests

echo 'Done!'
