-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
62 lines (43 loc) · 1.04 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.PHONY: install mypy lint fmt fmtcheck doc
install:
poetry install --with=dev
mypy:
poetry run mypy splipy
lint:
poetry run ruff splipy
bench:
poetry run pytest --benchmark-only
fmt:
poetry run black splipy
poetry run isort splipy
fmtcheck:
poetry run black splipy --check
poetry run isort splipy --check
doc:
$(MAKE) -C doc html
# Test targets
.PHONY: pytest
pytest:
poetry run pytest --benchmark-skip
.PHONY: examples
examples:
poetry run python examples/circle_animation.py --ci
poetry run python examples/lissajous.py --ci
poetry run python examples/loft.py
poetry run python examples/read.py
poetry run python examples/reuleaux.py --ci
poetry run python examples/trefoil.py
poetry run python examples/write.py
.PHONY: test # most common test commands for everyday development
test: pytest
.PHONY: test-all # run from CI: the whole kitchen sink
test-all: test examples
# Build targets (used from CI)
.PHONY: sdist
sdist:
poetry build -f sdist
.PHONY: wheel
wheel:
poetry build -f wheel
.PHONY: build
build: sdist wheel