-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 885 Bytes
/
Makefile
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
SHELL=/bin/bash
.venv:
python -m venv .venv
.venv/bin/pip install --upgrade pip setuptools wheel maturin
.venv/bin/pip install -r requirements.txt
install: .venv
unset CONDA_PREFIX && \
source .venv/bin/activate && maturin develop
install-release: .venv
unset CONDA_PREFIX && \
source .venv/bin/activate && maturin develop --release
pre-commit: .venv
cargo +nightly fmt --all && cargo clippy --all-features
.venv/bin/python -m ruff check . --fix --exit-non-zero-on-fix
.venv/bin/python -m ruff format python tests
.venv/bin/mypy python tests
test: .venv
.venv/bin/python -m pytest tests
run: install
source .venv/bin/activate && python run.py
run-release: install-release
source .venv/bin/activate && python run.py
setup-nightly:
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
rustup component add clippy --toolchain nightly