-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
63 lines (44 loc) · 1.46 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
.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:
poetry 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 poetry run opentelemetry-instrument uvicorn http_app:create_app --host 0.0.0.0 --port 8000 --factory
run:
poetry run uvicorn http_app:create_app --host 0.0.0.0 --port 8000 --factory
test:
poetry run pytest -n auto --cov
ci-test:
poetry run pytest
ci-coverage:
poetry run pytest --cov --cov-report lcov
typing:
poetry run mypy
install-dependencies:
poetry install --no-root --with http
dev-dependencies:
poetry install --with http,dev
update-dependencies:
poetry update --with http,dev
migrate:
poetry run alembic upgrade heads
format:
poetry run ruff format --check .
lint:
poetry run ruff .
fix:
poetry run ruff . --fix
poetry run ruff format .
check: lint format typing test
docs:
poetry run mkdocs serve
adr:
adr-viewer --serve --adr-path docs/adr
docs-build:
poetry run mkdocs build