-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 850 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (28 loc) · 850 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
.PHONY: fmt fmt-check check lint test build clean
fmt:
cargo fmt
poetry run ruff format tests
fmt-check:
cargo fmt --check
poetry run ruff format --check tests
check:
cargo clippy --all-targets -- -D warnings
lint: fmt-check check
poetry run ruff check tests
test:
poetry run pytest tests/ -v
build:
poetry run maturin develop
clean:
cargo clean
rm -rf target/
.DEFAULT_GOAL := help
help:
@echo "Available targets:"
@echo " fmt - Format Rust (rustfmt) and Python (ruff) code"
@echo " fmt-check - Check formatting without modifying files"
@echo " check - Run clippy linter with strict warnings"
@echo " lint - Run all format checks, clippy and ruff lint"
@echo " test - Run tests with pytest"
@echo " build - Build the extension module with maturin"
@echo " clean - Clean build artifacts"