-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.33 KB
/
Copy pathMakefile
File metadata and controls
56 lines (43 loc) · 1.33 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
# Put it first so that "make" without argument is like "make help".
PIP_ARGS =
BUILD_ARGS =
INSTALL_CONSTRAINTS = scm/install_constraints.txt
help:
@echo "Available targets:"
@echo " make install"
@echo " make install-editable"
@echo " make install-runtime-constraints"
@echo " make dev-env"
@echo " make auto-format"
@echo " make check-lint"
@echo " make type-check"
@echo " make test"
@echo " make test-cluster"
version:
@echo "version: $$(cat VERSION)"
install-runtime-constraints:
python3 -m pip install --no-deps -r $(INSTALL_CONSTRAINTS) $(PIP_ARGS)
install: version
python3 -m pip install . $(BUILD_ARGS) $(PIP_ARGS)
$(MAKE) install-runtime-constraints PIP_ARGS='$(PIP_ARGS)'
install-editable: version
python3 -m pip install --config-settings editable_mode=compat -e . $(BUILD_ARGS) $(PIP_ARGS)
$(MAKE) install-runtime-constraints PIP_ARGS='$(PIP_ARGS)'
dev-env:
python3 -m pip install -r scm/requirements.txt $(PIP_ARGS)
pre-commit install
auto-format:
ruff check . --fix
ruff format .
check-lint:
ruff check .
type-check:
pyright
test:
make -C tests
test-cluster:
make -C tests test-cluster
show-args:
@echo "PIP_ARGS: $(PIP_ARGS)"
@echo "BUILD_ARGS: $(BUILD_ARGS)"
.PHONY: help version install install-editable install-runtime-constraints dev-env auto-format check-lint type-check test test-cluster show-args