-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 1.39 KB
/
Copy pathMakefile
File metadata and controls
48 lines (37 loc) · 1.39 KB
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
45
46
47
48
.PHONY: setup build dev test test-rust lint fmt fmt-check typecheck check clean
# Install Python dev dependencies, CLI/QC/log extras, and the editable Rust extension.
setup:
uv sync --group dev --extra cli --extra qc --extra log
uv run maturin develop --manifest-path rust/Cargo.toml
# Build and install the Rust extension in release mode for local performance checks.
build:
uv run maturin develop --release --manifest-path rust/Cargo.toml
# Build and install the Rust extension in debug mode for normal development.
dev:
uv run maturin develop --manifest-path rust/Cargo.toml
# Run the Python test suite.
test:
uv run pytest
# Run the Rust test suite.
test-rust:
cargo test --manifest-path rust/Cargo.toml
# Run Python lint checks.
lint:
uv run ruff check .
# Format Python and Rust code.
fmt:
uv run ruff format .
cargo fmt --manifest-path rust/Cargo.toml
# Check Python and Rust formatting without changing files.
fmt-check:
uv run ruff format --check .
cargo fmt --check --manifest-path rust/Cargo.toml
# Run Python type checks.
typecheck:
uv run pyright
# Run the full local quality gate.
check: lint fmt-check typecheck test test-rust
cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings
# Remove local build, test, documentation, and compiled-extension artifacts.
clean:
rm -rf build dist site htmlcov .coverage .pytest_cache .ruff_cache rust/target src/tablassert/*.so