-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
64 lines (45 loc) · 1.45 KB
/
Makefile
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
.PHONY: docs docs-build adr
containers:
# Use local UID to avoid files permission issues when mounting directories
# We could do this at runtime, by specifying the user, but it's easier doing it
# at build time, so no special commands will be necessary at runtime
docker compose build --build-arg UID=`id -u` dev
# To build shared container layers only once we build a single container before the other ones
docker compose build --build-arg UID=`id -u`
dev:
uv run uvicorn http_app:create_app --host 0.0.0.0 --port 8000 --factory --reload
otel:
OTEL_SERVICE_NAME=bootstrap-fastapi OTEL_TRACES_EXPORTER=none OTEL_METRICS_EXPORTER=none OTEL_LOGS_EXPORTER=none uv run opentelemetry-instrument uvicorn http_app:create_app --host 0.0.0.0 --port 8000 --factory
run:
uv run uvicorn http_app:create_app --host 0.0.0.0 --port 8000 --factory
test:
uv run pytest -n auto --cov
ci-test:
uv run pytest
ci-coverage:
uv run pytest --cov --cov-report lcov
typing:
uv run mypy
install-dependencies:
uv sync --all-groups --no-dev --no-install-project --frozen
dev-dependencies:
uv sync --all-groups --frozen
update-dependencies:
uv lock --upgrade
migrate:
uv run alembic upgrade heads
format:
uv run ruff format --check .
lint:
uv run ruff check .
fix:
uv run ruff format .
uv run ruff check . --fix
uv run ruff format .
check: lint format typing test
docs:
uv run mkdocs serve
adr:
adr-viewer --serve --adr-path docs/adr
docs-build:
uv run mkdocs build