#!/bin/bash

set -e

# run linting of python and yaml files
echo 'Running linting...'
uv run mypy sentry_scrubber tests
uv run ruff check sentry_scrubber tests
uv run ruff format sentry_scrubber tests --check

# run pytest with args set
echo 'Running tests...'
uv run pytest -v tests/ \
		--cov sentry_scrubber/ \
		--cov-report xml \
		--cov-report term \
		--junitxml=pyunit.xml

echo 'Done.'
