.PHONY: check demo bench fmt clean

check:
	python -m ruff check src tests
	python -m ruff format --check src tests
	python -m mypy
	python -m pytest

fmt:
	python -m ruff check --fix src tests
	python -m ruff format src tests

demo:
	python examples/demo.py

bench:
	python -m pytest tests/test_bench_big_recording.py -q -s

clean:
	python -c "import shutil,sys; [shutil.rmtree(p, True) for p in ('.pytest_cache','.mypy_cache','.ruff_cache','.hypothesis')]"
