-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (49 loc) · 1.02 KB
/
Copy pathMakefile
File metadata and controls
70 lines (49 loc) · 1.02 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Convenience targets
.PHONY: sync
sync:
uv sync --all-packages --group dev --all-extras --reinstall
.PHONY: doc
doc:
$(MAKE) -C doc html
# Other targets
.PHONY: bench
bench:
uv run pytest --benchmark-only
# Linting targets
.PHONY: format
format:
uv run ruff format
.PHONY: lint
lint:
uv run ruff check --fix
# Test targets
.PHONY: pytest
pytest:
uv run pytest --benchmark-skip --cov --cov-branch --cov-report=xml
.PHONY: mypy
mypy:
uv run mypy
.PHONY: ruff
ruff:
uv run ruff check
uv run ruff format --check
.PHONY: examples
examples:
uv run python examples/circle_animation.py --ci
uv run python examples/lissajous.py --ci
uv run python examples/loft.py
uv run python examples/read.py
uv run python examples/reuleaux.py --ci
uv run python examples/trefoil.py
uv run python examples/write.py
.PHONY: test
test: pytest ruff examples
# Build targets (used from CI)
.PHONY: sdist
sdist:
uv build --all-packages --sdist
.PHONY: wheel
wheel:
uv build --all-packages --wheel
.PHONY: build
build: sdist wheel