forked from kevinzakka/mink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 958 Bytes
/
Copy pathMakefile
File metadata and controls
47 lines (38 loc) · 958 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: sync
sync:
uv sync --all-extras --all-packages --group dev
.PHONY: format
format:
uv run ruff format
uv run ruff check --fix
.PHONY: type
type:
uv run ty check
uv run pyright
.PHONY: check
check: format type
.PHONY: test
test:
uv run pytest
.PHONY: test-all
test-all: check test
.PHONY: coverage
coverage:
uv run coverage run --source=src -m pytest .
uv run coverage report
.PHONY: doc
doc:
rm -rf docs/_build
uv run --group doc sphinx-build docs docs/_build -W
.PHONY: doc-live
doc-live:
rm -rf docs/_build
uv run --group doc sphinx-autobuild docs docs/_build
.PHONY: build
build:
rm -rf dist/
uv build
uv run --no-cache --isolated --no-project --with pytest --with robot_descriptions --with dist/*.whl pytest tests/
uv run --no-cache --isolated --no-project --with pytest --with robot_descriptions --with dist/*.tar.gz pytest tests/
@ls -lh dist/*.whl | awk '{print "Wheel size: " $$5}'
@echo "Build and test successful"