-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (56 loc) · 1.42 KB
/
Makefile
File metadata and controls
74 lines (56 loc) · 1.42 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
ARGS ?=
MAIN_PACKAGE_CLI = uni-resource-api
.PHONY: install
install:
uv sync --all-extras --all-packages
.PHONY: dev
dev:
uv run $(MAIN_PACKAGE_CLI) --dev
.PHONY: prod
prod:
uv run --no-sync $(MAIN_PACKAGE_CLI)
.PHONY: update
update:
uv sync --all-extras --all-packages -U
.PHONY: clean
clean:
rm -rf .venv && rm -rf dist/ && rm -rf build/ && rm -rf .ruff_cache/
.PHONY: test
test:
uv run pytest tests -v
.PHONY: lint
lint:
uv run ruff check . && uv run ty check . --ignore invalid-return-type
.PHONY: format
format:
uv run ruff format .
.PHONY: docker-build
docker-build:
docker compose build $(ARGS)
.PHONY: docker-run
docker-run:
docker compose up -d $(ARGS)
.PHONY: docker-stop
docker-stop:
docker compose down $(ARGS)
.PHONY: helm-lint
helm-lint:
helm lint helm/mcp-template-python $(ARGS)
.PHONY: helm-install
helm-install:
helm install mcp-template-python helm/mcp-template-python $(ARGS)
.PHONY: helm-upgrade
helm-upgrade:
helm upgrade mcp-template-python helm/mcp-template-python $(ARGS)
.PHONY: helm-install-prod
helm-install-prod:
helm install mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS)
.PHONY: helm-upgrade-prod
helm-upgrade-prod:
helm upgrade mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS)
.PHONY: helm-uninstall
helm-uninstall:
helm uninstall mcp-template-python $(ARGS)
.PHONY: rename
rename:
uv run python tools/rename.py $(ARGS)