#!/bin/bash
set -euo pipefail

# pyclean didn't seem to do the trick, so I just enumerate everything here.
# --force required for no error if file/dir doesn't exist.

rm --recursive --force --verbose \
    .eggs \
    .pytest_cache \
    .tox build \
    cov_html \
    dist \
    health_api.egg-info \
    .coverage cov.xml;

find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm --recursive --force --verbose;
