forked from everycure-org/matrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 759 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 759 Bytes
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
PREREQUISITES := docker gcloud python3 java uv kubectl
setup: prerequisites precommit-hooks
prerequisites:
$(info Checking if prerequisites are installed...)
$(foreach exec,$(PREREQUISITES),\
$(if $(shell command -v $(exec) 2>/dev/null),,$(error "$(exec) is not installed.")))
$(info All prerequisites are installed.)
$(info Checking gcloud auth...)
@if ! gcloud auth print-access-token >/dev/null 2>&1; then \
echo "Not logged into gcloud. Please run 'gcloud auth login' first."; \
exit 1; \
fi
precommit: precommit-hooks
uv sync --group dev
git fetch origin
uv run pre-commit run --from-ref origin/main --to-ref HEAD
precommit-hooks:
uv run pre-commit install --install-hooks
format:
uv run ruff check . --fix
install:
uv sync