-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 826 Bytes
/
Makefile
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
.DEFAULT_GOAL := build
.PHONY: lint
lint:
cargo clippy --locked -- -D warnings --no-deps
uv --project pyraydeon run ruff check pyraydeon
.PHONY: check-fmt
check-fmt:
cargo fmt --check
uv --project pyraydeon run ruff format --check pyraydeon
.PHONY: rust-render-test
rust-render-test:
./raydeon/check-examples.sh
.PHONY: reinstall-py-venv
reinstall-py-venv:
echo "Reinstalling native dependencies in virtualenv..."
uv --project pyraydeon run --reinstall python -c 'print("Reinstalled dependencies")'
.PHONY: py-render-test
py-render-test: reinstall-py-venv
./pyraydeon/check-examples.sh
.PHONY: render-test
render-test: rust-render-test py-render-test
.PHONY: unit-test
unit-test:
cargo test --locked
.PHONY: check
check: check-fmt lint unit-test render-test
.PHONY: build
build: check
cargo build --locked