-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
38 lines (27 loc) · 839 Bytes
/
Copy pathJustfile
File metadata and controls
38 lines (27 loc) · 839 Bytes
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
venv := if os_family() == "windows" { ".venv/Scripts/python.exe" } else { ".venv/bin/python" }
format:
cargo fmt --all
lint:
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
test:
cargo test
setup:
python -m venv .venv
{{venv}} -m pip install maturin numpy pytest
python:
cargo clippy -p quantize-py --all-targets -- -D warnings
VIRTUAL_ENV="{{justfile_directory()}}/.venv" {{venv}} -m maturin develop
{{venv}} -m pytest python/tests
python-test:
python -m pytest python/tests
wheels:
maturin build --release --out dist
compare:
cargo run --release --example compare
throughput:
cargo run --release --example throughput
wikitext:
cargo run --release --example wikitext --features workload
update-readme:
cargo run --release --example update_readme