-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 719 Bytes
/
Makefile
File metadata and controls
51 lines (34 loc) · 719 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
VERSION ?= latest
IMAGE_TAG_BASE ?= observability-dashboard
IMG ?= $(IMAGE_TAG_BASE):$(VERSION)
PLATFORMS ?= linux/arm64,linux/amd64
.PHONY: all
all: build docker-build
.PHONY: build
build:
uv sync
.PHONY: run
run: build
uv run fastapi run --port 10005
.PHONY: dev
dev: build
uv run fastapi dev --port 10005
.PHONY: test
test: build
uv run pytest
.PHONY: check
check: build test
uv run mypy .
uv run ruff check
uv run lint-imports
uv run bandit -c pyproject.toml -r .
.PHONY: check-fix
check-fix: build
uv run ruff format
uv run ruff check --fix
.PHONY: docker-build
docker-build:
docker build -t $(IMG) .
.PHONY: docker-run
docker-run: docker-build
docker run --rm -it -p 8000:8000 $(IMG)