-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 952 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (31 loc) · 952 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
39
40
41
42
43
44
.PHONY: sync build-dev build-release clean test-rust test-rust-python test-python test fmt lint all coverage coverage-ci
sync:
uv sync --group dev
build-dev: sync
uv run maturin develop --uv
build-release:
uv run maturin build --release
clean:
cargo clean
rm -rf dist .pytest_cache coverage
find . -name __pycache__ -exec rm -rf {} +
fmt: sync
cargo fmt -- --check
uv run --no-project ruff format --check .
lint: sync
cargo clippy -- -D warnings
cargo clippy --features python -- -D warnings
uv run --no-project basedpyright .
test-rust:
cargo test
test-rust-python:
cargo test --features python
test-python: build-dev
uv run --no-project pytest
test: test-rust test-rust-python test-python
coverage:
cargo llvm-cov --features python --html --output-dir coverage
coverage-ci:
mkdir -p coverage
cargo llvm-cov --features python --lcov --output-path coverage/lcov.info --fail-under-lines 85
all: fmt lint test build-release