-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
90 lines (69 loc) · 3.07 KB
/
Copy pathMakefile
File metadata and controls
90 lines (69 loc) · 3.07 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.PHONY: sync test unit integration e2e conformance lint format typecheck boundaries propagation schemas validate example showcase surrogate scene viewer docs api clean
sync:
uv sync --locked --all-packages --group dev
test: surrogate
uv run --locked pytest
unit:
uv run --locked pytest packages apps adapters domain-packs
integration:
uv run --locked pytest -m integration
e2e:
uv run --locked pytest -m e2e
conformance:
uv run --locked pytest -m conformance
lint:
uv lock --check
uv run --locked ruff check .
uv run --locked ruff format --check .
uv run --locked pyright
uv run --locked python scripts/check-boundaries.py
uv run --locked python scripts/check-propagation.py
uv run --locked python scripts/generate-schemas.py --check
uv run --locked python scripts/validate-repository.py
uv run --locked python scripts/check-version.py
format:
uv run --locked ruff format .
uv run --locked ruff check --fix .
typecheck:
uv run --locked pyright
boundaries:
uv run --locked python scripts/check-boundaries.py
propagation:
uv run --locked python scripts/check-propagation.py
schemas:
uv run --locked python scripts/generate-schemas.py
validate:
uv lock --check
uv run --locked python scripts/check-propagation.py
uv run --locked python scripts/validate-repository.py
uv run --locked python scripts/check-version.py
example:
uv run --locked python examples/simulated-color-mixing/run_campaign.py
showcase:
uv run --locked pytest examples/discovering-colors/tests
surrogate:
uv run --locked --with-editable ./examples/digital-twin-surrogate/adapter pytest examples/digital-twin-surrogate/tests
uv run --locked opensdl twin validate examples/digital-twin-surrogate/twin.yaml
# Requires the Blender release recorded in scene/assets/node-inventory.json. A skip is a failure
# here: this target exists to prove the scene still rebuilds to the committed bytes.
scene:
PYTHONPATH=scripts uv run --locked --with-editable ./examples/digital-twin-surrogate/adapter \
pytest -p pytest_no_skip examples/digital-twin-surrogate/tests/test_scene_reproducibility.py
viewer:
npm --prefix examples/digital-twin-surrogate/viewer ci
npm --prefix examples/digital-twin-surrogate/viewer run lint
npm --prefix examples/digital-twin-surrogate/viewer run typecheck
npm --prefix examples/digital-twin-surrogate/viewer test
npm --prefix examples/digital-twin-surrogate/viewer run build
git diff --exit-code -- examples/digital-twin-surrogate/viewer/static
docs:
uv run --locked --all-packages --group dev --group docs mkdocs build --strict
api:
uv run --locked opensdl serve-api --manifest examples/simulated-color-mixing/opensdl.yaml
# `build/` is setuptools' residue from `uv build`. It is gitignored and holds importable copies of
# real modules, so leaving it behind makes every recursive search of the worktree ambiguous.
# `scripts/validate-repository.py` fails while any of it survives.
clean:
rm -rf .opensdl site dist .pytest_cache .ruff_cache .coverage htmlcov
find . -path ./.venv -prune -o -path '*/node_modules' -prune -o \
-type d \( -name __pycache__ -o -name build \) -print -exec rm -rf {} +