-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 797 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (27 loc) · 797 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
.PHONY: install test lint format check docs build scanner-build scanner-test scanner-lint tauri-check
install:
pip install -e ./engine[dev]
test:
python3 -m pytest engine/tests/ -v
lint:
ruff check engine/
ruff format --check engine/
format:
ruff format engine/
ruff check --fix engine/
scanner-build:
cargo build --manifest-path scanner/Cargo.toml
scanner-test:
cargo test --manifest-path scanner/Cargo.toml
scanner-lint:
cargo fmt --manifest-path scanner/Cargo.toml -- --check
cargo clippy --manifest-path scanner/Cargo.toml -- -D warnings
tauri-check:
cargo check --manifest-path app/src-tauri/Cargo.toml
check: lint test scanner-lint scanner-test tauri-check
docs:
mkdocs serve
build:
cp README.md engine/README.md
cd engine && python -m build
rm -f engine/README.md