-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
108 lines (73 loc) · 3.11 KB
/
Copy pathMakefile
File metadata and controls
108 lines (73 loc) · 3.11 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
PYTHON ?= python
.PHONY: install install-dev compile data pipeline test lint format-check
.PHONY: check-hygiene check-packaging check-devcontainer check-fixtures
.PHONY: check-documented-commands
.PHONY: check-artifact-schema check-release-ready check-v1-ready audit-repository
.PHONY: benchmark scale-benchmark verify-core verify-portfolio verify-benchmarks
.PHONY: verify-realdata verify-scale-benchmark verify-release-candidate
.PHONY: verify-v1-candidate verify-full verify cpp-demo
.PHONY: web-backend web-frontend web-build web-test verify-web
install:
$(PYTHON) -m pip install -e .
install-dev:
$(PYTHON) -m pip install -e ".[dev,vis,bench]"
compile:
$(PYTHON) -m compileall -q main.py pointcloud_geolab tests examples scripts benchmarks web/backend
data:
$(PYTHON) examples/generate_demo_data.py --output examples/demo_data
pipeline: data
$(PYTHON) -m pointcloud_geolab pipeline --input examples/demo_data --output outputs/portfolio_demo
test:
$(PYTHON) -m pytest --cov=pointcloud_geolab
lint:
$(PYTHON) -m ruff check .
format-check:
$(PYTHON) -m black --check .
check-hygiene:
$(PYTHON) scripts/check_repo_hygiene.py
check-packaging:
$(PYTHON) scripts/check_packaging.py
check-devcontainer:
$(PYTHON) scripts/check_devcontainer.py
check-fixtures:
$(PYTHON) scripts/check_dataset_fixtures.py
check-artifact-schema:
$(PYTHON) scripts/check_artifact_schema.py
check-documented-commands:
$(PYTHON) scripts/check_documented_commands.py
check-release-ready:
$(PYTHON) scripts/check_release_ready.py
check-v1-ready:
$(PYTHON) scripts/check_v1_ready.py
audit-repository:
$(PYTHON) scripts/audit_repository_state.py
benchmark:
$(PYTHON) -m pointcloud_geolab benchmark --suite all --quick --output outputs/benchmarks
scale-benchmark:
$(PYTHON) scripts/run_scale_benchmark.py --quick --repeat 2 --output-dir outputs/scale_benchmark
verify-core: compile lint format-check test check-hygiene check-devcontainer check-packaging check-fixtures check-artifact-schema
$(PYTHON) scripts/check_documented_commands.py
verify-portfolio: data pipeline
$(PYTHON) scripts/verify_portfolio.py --quick --output-dir outputs
verify-benchmarks: benchmark
$(PYTHON) scripts/verify_benchmarks.py --output-dir outputs/benchmarks
verify-realdata:
$(PYTHON) scripts/verify_realdata_workflow.py --dry-run
verify-scale-benchmark: scale-benchmark
$(PYTHON) scripts/verify_benchmarks.py --output-dir outputs/scale_benchmark --suite scale
verify-release-candidate: verify-core verify-portfolio verify-benchmarks check-release-ready check-artifact-schema
verify-v1-candidate: verify-core verify-portfolio verify-benchmarks verify-realdata verify-scale-benchmark check-v1-ready
verify-full: verify-core verify-portfolio verify-benchmarks
verify: verify-full
cpp-demo:
cmake -S cpp -B cpp/build
cmake --build cpp/build --config Release
web-backend:
$(PYTHON) -m uvicorn web.backend.app.main:app --reload --host 127.0.0.1 --port 8000
web-frontend:
cd web/frontend && npm run dev -- --host 127.0.0.1
web-build:
cd web/frontend && npm install && npm test && npm run build
web-test:
$(PYTHON) -m pytest web/backend/tests
verify-web: web-test web-build