-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathJustfile
62 lines (48 loc) · 1.51 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
alias fmt := format
alias pre := pre-commit
# run all tests
test *args='':
cargo test --all {{args}}
# compile but don't run all tests
compile-tests *args='':
cargo test --no-run {{args}}
# build debug version
build *args='':
cargo build {{args}}
# build release version
build-release *args='':
cargo build --release {{args}}
# run clippy
lint *args='':
cargo clippy --all-features {{args}}
# reformat all rust files
format *args='':
cargo fmt --all {{args}}
# reformat all nix files
format-nix *args='':
alejandra .
# run cargo deny to check dependencies
check-deps *args='':
cargo deny --all-features check {{args}}
run-all-examples:
for example in icechunk/examples/*.rs; do cargo run --example "$(basename "${example%.rs}")"; done
# run all checks that CI actions will run
pre-commit $RUSTFLAGS="-D warnings -W unreachable-pub -W bare-trait-objects":
just compile-tests "--locked"
just build
just format "--check"
just lint "-p icechunk -p icechunk-python"
just test
just run-all-examples
just check-deps
pre-commit-python:
just format "--check -p icechunk-python"
just lint "-p icechunk-python"
bench-compare *args:
pytest-benchmark compare --group=group,func,param --sort=fullname --columns=median --name=short {{args}}
create-deepak-env name:
mamba create -y -n icechunk-{{name}} python=3.12 ipykernel ipdb
mamba activate icechunk-{{name}}
just coiled-ice-create {{name}}
coiled-ice-create version:
pip install coiled arraylake icechunk=='{{version}}' watermark xarray bokeh