-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 724 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 724 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
SHELL=/bin/bash
install:
unset CONDA_PREFIX && \
source .venv/bin/activate && maturin develop -m Cargo.toml
install-release:
unset CONDA_PREFIX && \
source .venv/bin/activate && maturin develop --release -m Cargo.toml
pre-commit:
rustup component add rustfmt clippy --toolchain nightly-2025-10-24
cargo fmt --all --manifest-path Cargo.toml && cargo clippy --all-features --manifest-path Cargo.toml
.venv/bin/python -m ruff format minimal_plugin test_plugin.py
.venv/bin/python -m ruff check minimal_plugin test_plugin.py
run: install
source .venv/bin/activate && python run.py
run-release: install-release
source .venv/bin/activate && python run.py
test:
source .venv/bin/activate && pytest test_plugin.py