-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
94 lines (73 loc) · 2.79 KB
/
justfile
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
export PYTHONOPTIMIZE := "1"
export HATCH_BUILD_CLEAN := "1"
export HYDRA_FULL_ERROR := "1"
_default:
@just --list --unsorted
sync:
uv sync --all-extras --dev
install-tools:
uv tool install --force --upgrade ruff
uv tool install --force --upgrade basedpyright
uv tool install --force --upgrade pre-commit --with pre-commit-uv
setup: sync install-tools
git submodule update --init --recursive --force --remote
git lfs pull
uvx pre-commit install --install-hooks
clean:
uvx --from hatch hatch clean
build:
uv build
format *ARGS:
uvx ruff format {{ ARGS }}
lint *ARGS:
uvx ruff check {{ ARGS }}
typecheck *ARGS:
uvx basedpyright {{ ARGS }}
build-protos:
uvx --from hatch hatch build --clean --hooks-only --target sdist
pre-commit *ARGS: build-protos
uvx pre-commit run --all-files --color=always {{ ARGS }}
generate-config:
ytt --ignore-unknown-comments \
--file {{ justfile_directory() }}/config/_templates \
--output-files {{ justfile_directory() }}/config \
--output yaml \
--strict
test *ARGS: generate-config
uv run --all-extras pytest --capture=no {{ ARGS }}
notebook FILE *ARGS: sync generate-config
uv run --all-extras --with=jupyter,jupyterlab-vim,rerun-notebook jupyter lab {{ FILE }} {{ ARGS }}
[group('scripts')]
visualize *ARGS: generate-config
uv run rbyte-visualize \
--config-path {{ justfile_directory() }}/config \
--config-name visualize.yaml \
hydra/hydra_logging=disabled \
hydra/job_logging=disabled \
{{ ARGS }}
[group('visualize')]
visualize-mimicgen *ARGS:
just visualize dataset=mimicgen logger=rerun/mimicgen ++data_dir={{ justfile_directory() }}/tests/data/mimicgen {{ ARGS }}
[group('visualize')]
visualize-yaak *ARGS:
just visualize dataset=yaak logger=rerun/yaak ++data_dir={{ justfile_directory() }}/tests/data/yaak {{ ARGS }}
[group('visualize')]
visualize-zod *ARGS:
just visualize dataset=zod logger=rerun/zod ++data_dir={{ justfile_directory() }}/tests/data/zod {{ ARGS }}
[group('visualize')]
visualize-nuscenes-mcap *ARGS:
just visualize dataset=nuscenes/mcap logger=rerun/nuscenes/mcap ++data_dir={{ justfile_directory() }}/tests/data/nuscenes/mcap {{ ARGS }}
[group('visualize')]
visualize-nuscenes-rrd *ARGS:
just visualize dataset=nuscenes/rrd logger=rerun/nuscenes/rrd ++data_dir={{ justfile_directory() }}/tests/data/nuscenes/rrd {{ ARGS }}
# rerun server and viewer
rerun bind="0.0.0.0" port="9876" ws-server-port="9877" web-viewer-port="9090":
RUST_LOG=debug uv run rerun \
--bind {{ bind }} \
--port {{ port }} \
--ws-server-port {{ ws-server-port }} \
--web-viewer \
--web-viewer-port {{ web-viewer-port }} \
--memory-limit 95% \
--server-memory-limit 95% \
--expect-data-soon \