forked from charmoniumQ/PROBE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
54 lines (37 loc) · 1.29 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
fix-format-nix:
#alejandra .
check-format-nix:
#alejandra --check . # TODO: uncomment
fix-ruff:
#ruff format probe_src # TODO: uncomment
ruff check --fix probe_src
check-ruff:
#ruff format --check probe_src # TODO: uncomment
ruff check probe_src
check-format-rust:
env --chdir probe_src/frontend cargo fmt --check
fix-format-rust:
env --chdir probe_src/frontend cargo fmt
check-clippy:
env --chdir probe_src/frontend cargo clippy
fix-clippy:
env --chdir probe_src/frontend cargo clippy --fix --allow-staged
check-mypy:
mypy --strict --package probe_py.manual
mypy --strict --package probe_py.generated
mypy --strict probe_src/libprobe
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-ci: compile-lib
pytest probe_src
test-dev: compile-lib
pytest probe_src --failed-first --maxfail=1
check-flake:
nix flake check --all-systems
pre-commit: fix-format-nix fix-ruff fix-format-rust fix-clippy compile check-mypy test-dev
on-push: check-format-nix check-ruff check-format-rust check-clippy compile check-mypy check-flake test-ci