-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
75 lines (52 loc) · 1.57 KB
/
justfile
File metadata and controls
75 lines (52 loc) · 1.57 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
install:
pip install -r requirements/dev.txt
format-rs:
cargo fmt --all
format-py:
ruff check --select I --fix python/vts scratchpad.ipynb
black --quiet python/vts scratchpad.ipynb
format: format-rs format-py
lock:
uv pip compile -o requirements/tests.txt requirements/tests.in
uv pip compile -o requirements/check.txt requirements/check.in
uv pip compile -o requirements/format.txt requirements/format.in
uv pip compile -o requirements/build.txt requirements/build.in
uv pip compile -o requirements/notebook.txt requirements/notebook.in
uv pip compile -o requirements/dev.txt requirements/dev.in
check-rs:
cargo check --workspace
cargo clippy --workspace
check-py:
nox -s check
nbqa ruff scratchpad.ipynb --ignore E402
nbqa mypy scratchpad.ipynb
check-md:
markdownlint-cli2 README.md
check-all: check-rs check-py check-md
check CRATE:
cargo check --package vts_{{CRATE}}
cargo clippy --package vts_{{CRATE}}
test-rs:
cargo test --workspace --exclude vts_api
test-py:
nox -s tests
test-all: test-rs test-py
test CRATE:
cargo test --package vts_{{CRATE}}
build-rs:
cargo build --workspace --exclude vts_api
build-py:
maturin build
build: build-rs build-py
notebook:
jupyter-lab
clean:
cargo clean
watch-cargo:
cargo watch -c -w vts_api -w vts_core -w vts_cli -x check -x clippy
watch-maturin:
watchexec -c -w vts_api -w vts_core maturin dev
watch-git:
watchexec -c -r -w ./ -w .git/objects git status
watch-scratchpad:
watchexec -c -r RUST_BACKTRACE=1 python scratchpad.py