-
Notifications
You must be signed in to change notification settings - Fork 9
/
Justfile
34 lines (24 loc) · 815 Bytes
/
Justfile
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
fix-format-nix:
alejandra .
fix-ruff:
#ruff format probe_src # TODO: uncomment
ruff check --fix probe_src
fix-format-rust:
env --chdir probe_src/frontend cargo fmt
fix-clippy:
git add -A
env --chdir probe_src/frontend cargo clippy --fix --allow-staged
check-mypy:
mypy --strict probe_src/libprobe
mypy --strict --package probe_py.generated
mypy --strict --package probe_py.manual
compile-lib:
make --directory=probe_src/libprobe all
compile-cli:
env --chdir=probe_src/frontend cargo build --release
compile-tests:
make --directory=probe_src/tests/c all
compile: compile-lib compile-cli compile-tests
test-dev: compile
pytest probe_src --failed-first --maxfail=1
pre-commit: fix-format-nix fix-ruff fix-format-rust fix-clippy compile check-mypy test-dev