-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (50 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
71 lines (50 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# SPDX-License-Identifier: AGPL-3.0-or-later
.PHONY: test test-rust test-all lint fmt bandit sast preflight preflight-fast docs docs-build bench bench-rust bench-native-handoff bridge build install-hooks docker-build docker-run clean
test:
pytest tests/ -v --cov=scpn_control --cov-report=term --cov-fail-under=100
test-rust:
cd scpn-control-rs && cargo test --workspace
test-all: test test-rust
lint:
ruff check src/ tests/
ruff format --check src/ tests/
python tools/check_changelog_sync.py
python tools/run_docstring_gate.py
fmt:
ruff check --fix src/ tests/
ruff format src/ tests/
cd scpn-control-rs && cargo fmt
bandit:
bandit -r src/scpn_control/ -c pyproject.toml -q
sast: bandit
preflight:
python tools/preflight.py
preflight-fast:
python tools/preflight.py --no-tests
docs:
mkdocs serve
docs-build:
mkdocs build --strict
bench:
scpn-control benchmark --n-bench 5000
bench-rust:
cd scpn-control-rs && cargo bench --workspace
bench-native-handoff:
PYTHONPATH=src .venv/bin/python scripts/benchmark_native_handoff.py --steps 5000 --tick-interval-s 0.0001 --transport-backend std
bridge:
cd scpn-control-rs/crates/control-python && maturin develop --release
bridge-io-uring:
cd scpn-control-rs/crates/control-python && maturin develop --release --features io-uring
build:
python -m build
install-hooks:
git config core.hooksPath .githooks
@echo "Git hooks installed (.githooks/pre-push)"
docker-build:
docker build -t scpn-control:latest .
docker-run:
docker run --rm -it scpn-control:latest
clean:
rm -rf dist/ build/ *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +
cd scpn-control-rs && cargo clean