-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 1.09 KB
/
Copy pathMakefile
File metadata and controls
42 lines (33 loc) · 1.09 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: test lint format install dev clean bench
test:
python -m pytest tests/ -v
test-cov:
python -m pytest tests/ -v --cov=macfleet --cov-report=term-missing
lint:
ruff check macfleet/ tests/
mypy macfleet/ --ignore-missing-imports
format:
ruff format macfleet/ tests/
ruff check --fix macfleet/ tests/
install:
pip install -e .
dev:
pip install -e ".[dev]"
bench:
python -m macfleet.cli.main bench --type compute
python -m macfleet.cli.main bench --type network --size-mb 1
python -m macfleet.cli.main bench --type allreduce --size-mb 1
clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .pytest_cache -exec rm -rf {} +
find . -name "*.pyc" -delete
rm -rf build/ dist/ *.egg-info
help:
@echo "MacFleet dev targets:"
@echo " make test Run pytest suite"
@echo " make lint ruff + mypy"
@echo " make format ruff format + fix"
@echo " make install pip install -e ."
@echo " make dev pip install -e .[dev]"
@echo " make bench run compute/network/allreduce benches"
@echo " make clean remove caches and build artifacts"