-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
79 lines (59 loc) · 2.67 KB
/
Copy pathTaskfile.yml
File metadata and controls
79 lines (59 loc) · 2.67 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
version: "3"
tasks:
# ── Servers ──────────────────────────────────────────────────────────────
serve-rest:
desc: Start the REST API (FastAPI / uvicorn, port 8000)
cmd: uv run python -m vizion3d.server.rest.app
serve-grpc:
desc: Start the gRPC server (port 50051)
cmd: uv run python -m vizion3d.server.grpc.server
# ── Tests ─────────────────────────────────────────────────────────────────
test:
desc: Run the full test suite
cmd: uv run pytest
test-fast:
desc: Run tests skipping slow model-loading tests
cmd: uv run pytest -m "not slow"
# ── Code quality ──────────────────────────────────────────────────────────
lint:
desc: Check code style with ruff
cmd: uv run ruff check .
format:
desc: Auto-format with ruff (rewrites files)
cmd: uv run ruff format .
check:
desc: Lint + format-check with no file writes (CI-safe)
cmds:
- uv run ruff check .
- uv run ruff format --check .
# ── Docs ─────────────────────────────────────────────────────────────────
docs:
desc: Build the MkDocs site into site/
cmd: uv run mkdocs build
docs-serve:
desc: Serve docs locally with live reload
cmd: uv run mkdocs serve
docs-deploy:
desc: Build and push docs to the gh-pages branch on GitHub
cmd: uv run mkdocs gh-deploy --force
# ── Build ─────────────────────────────────────────────────────────────────
protos:
desc: Regenerate protobuf Python stubs from .proto files
cmd: >
uv run python -m grpc_tools.protoc
-I.
--python_out=.
--grpc_python_out=.
vizion3d/proto/lifting.proto
build:
desc: Build wheel + sdist into dist/
cmd: uv build
publish:
desc: Upload dist/ to PyPI using twine
cmd: uv run twine upload dist/*
clean:
desc: Remove all build and cache artefacts
cmds:
- rm -rf dist/ site/ .ruff_cache/ .pytest_cache/
- find . -type d -name __pycache__ -not -path "./.venv/*" -exec rm -rf {} +
- find . -type f -name "*.pyc" -not -path "./.venv/*" -delete