-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 747 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (21 loc) · 747 Bytes
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
BENCH_FILES := $(filter-out benchmarks/benchutils.py benchmarks/__init__.py, $(wildcard benchmarks/*.py))
PYTHON ?= python3
.PHONY: lint format check test bench code-qual ci docs
lint:
ruff check metile/ tests/ benchmarks/ kernels/
format:
ruff format metile/ tests/ benchmarks/ kernels/
ruff check --fix metile/ tests/ benchmarks/ kernels/
check: lint
ruff format --check metile/ tests/ benchmarks/ kernels/
code-qual:
vulture metile/ kernels/ --min-confidence 90 \
--exclude "metile/ir/printer.py" \
--ignore-names "result_type,to_msl,to_msl_mut"
test:
$(PYTHON) -m pytest tests/ -x -q
bench:
@for f in $(BENCH_FILES); do echo "=== $$f ===" && $(PYTHON) $$f && echo; done
ci: check code-qual test
docs:
$(MAKE) -C docs html