-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (29 loc) · 1.08 KB
/
Makefile
File metadata and controls
42 lines (29 loc) · 1.08 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
ifneq (,$(wildcard .env))
include .env
export $(shell sed 's/=.*//' .env)
endif
timestamp = $(shell date +"%Y-%m-%d %H:%M:%S.%3N")
log = echo $(call timestamp) $(1)
wait-for = $(call log,"👀$(2) waiting...") && wait-for $(1) && $(call log,"☑️$(2) ready")
# ----------- SHORT COMMANDS ----------- #
r: run ## short run runserver
# ----------- BASE COMMANDS ----------- #
run: ## run runserver
uvicorn app.main:app --reload
lint: ## run lint
pre-commit run --all-files
# ----------- DOCUMENTATION COMMANDS ----------- #
docs-install: ## Install documentation dependencies
uv sync --group docs
docs-serve: ## Serve documentation locally
uv run mkdocs serve -a 0.0.0.0:9999
docs-build: ## Build documentation
uv run mkdocs build --clean --strict
docs-check: ## Check documentation for issues
@echo "Checking documentation..."
uv run python scripts/test-docs.py
docs-clean: ## Clean documentation build artifacts
rm -rf site/
help:
@echo "Usage: make <target>"
@awk 'BEGIN {FS = ":.*##"} /^[0-9a-zA-Z_-]+:.*?## / { printf " * %-20s -%s\n", $$1, $$2 }' $(MAKEFILE_LIST)