-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (29 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
42 lines (29 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: install lint typecheck test test-unit test-integration test-e2e coverage mutate clean all
install:
uv sync --all-extras
lint:
uv run ruff check echovector/ tests/ benchmarks/
uv run ruff format --check echovector/ tests/ benchmarks/
lint-fix:
uv run ruff check --fix echovector/ tests/ benchmarks/
uv run ruff format echovector/ tests/ benchmarks/
typecheck:
uv run mypy echovector/ benchmarks/
benchmark:
uv run python benchmarks/esc50.py --dataset $(ESC50) --backend clap --json-out results/esc50-clap.json
test:
uv run pytest tests/ -v
test-unit:
uv run pytest tests/unit/ -v
test-integration:
uv run pytest tests/integration/ -v -m integration
test-e2e:
uv run pytest tests/e2e/ -v
coverage:
uv run pytest tests/ --cov=echovector --cov-report=html --cov-report=term-missing
mutate:
uv run mutmut run
clean:
rm -rf dist/ build/ *.egg-info/ .pytest_cache/ .mypy_cache/ .ruff_cache/ htmlcov/ .coverage .mutmut-cache/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
all: lint typecheck test