-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathContainer.mk
More file actions
105 lines (84 loc) · 2.51 KB
/
Container.mk
File metadata and controls
105 lines (84 loc) · 2.51 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.PHONY: generate
generate:
yarn install
yarn generate
.PHONY: build-python
build-python:
uv --directory python/foxglove-sdk lock --check
uv --directory python/foxglove-sdk sync --all-extras
uv --directory python/foxglove-sdk pip install --editable '.[notebook]'
.PHONY: lint-python
lint-python:
uv lock --check
uv run black python --check
uv run isort python --check
uv run flake8 python
.PHONY: test-python
test-python:
uv --directory python/foxglove-sdk lock --check
uv --directory python/foxglove-sdk sync --all-extras
uv --directory python/foxglove-sdk pip install --editable '.[notebook]'
uv --directory python/foxglove-sdk run mypy .
uv --directory python/foxglove-sdk run pytest
.PHONY: benchmark-python
benchmark-python:
uv --directory python/foxglove-sdk lock --check
uv --directory python/foxglove-sdk sync --all-extras
uv --directory python/foxglove-sdk pip install --editable '.[notebook]'
uv --directory python/foxglove-sdk run pytest --with-benchmarks
.PHONY: docs-python
docs-python:
uv --directory python/foxglove-sdk lock --check
uv --directory python/foxglove-sdk sync --all-extras
uv --directory python/foxglove-sdk pip install --editable '.[notebook]'
uv --directory python/foxglove-sdk run sphinx-build --fail-on-warning ./python/docs ./python/docs/_build
.PHONY: clean-docs-python
clean-docs-python:
rm -rf python/foxglove-sdk/python/docs/_build
.PHONY: lint-rust
lint-rust:
cargo fmt --all --check
cargo clippy --no-deps --all-targets --tests -- -D warnings
.PHONY: build-rust
build-rust:
cargo build --all-targets
.PHONY: build-rust-foxglove-msrv
build-rust-foxglove-msrv:
cargo +$(MSRV_RUST_VERSION) build -p foxglove --all-features
.PHONY: test-rust
test-rust:
cargo test --all-features
.PHONY: test-rust-foxglove-no-default-features
test-rust-foxglove-no-default-features:
cargo test -p foxglove --no-default-features
.PHONY: docs-rust
docs-rust:
cargo +nightly rustdoc -p foxglove --all-features -- -D warnings --cfg docsrs
.PHONY: clean-cpp
clean-cpp:
rm -rf cpp/build*
.PHONY: clean-docs-cpp
clean-docs-cpp:
rm -rf cpp/foxglove/docs/generated
rm -rf cpp/build/docs
.PHONY: docs-cpp
docs-cpp: clean-docs-cpp
make -C cpp docs
.PHONY: build-cpp
build-cpp:
make -C cpp build
.PHONY: build-cpp-tidy
build-cpp-tidy:
make -C cpp CLANG_TIDY=true build
.PHONY: lint-cpp
lint-cpp:
make -C cpp lint
.PHONY: lint-fix-cpp
lint-fix-cpp:
make -C cpp lint-fix
.PHONY: test-cpp
test-cpp:
make -C cpp test
.PHONY: test-cpp-sanitize
test-cpp-sanitize:
make -C cpp SANITIZE=address,undefined test