-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (44 loc) · 1.28 KB
/
Makefile
File metadata and controls
63 lines (44 loc) · 1.28 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
# 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 bridge build install-hooks docker-build docker-run clean
test:
pytest tests/ -v --cov=scpn_control --cov-report=term --cov-fail-under=85
test-rust:
cd scpn-control-rs && cargo test --workspace
test-all: test test-rust
lint:
ruff check src/ tests/
ruff format --check src/ tests/
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
bridge:
cd scpn-control-rs/crates/control-python && maturin develop --release
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