-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (33 loc) · 1.02 KB
/
Makefile
File metadata and controls
45 lines (33 loc) · 1.02 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
# generated by DipDup 8.3.1
.PHONY: $(MAKECMDGOALS)
MAKEFLAGS += --no-print-directory
##
## 🚧 DipDup developer tools
##
PACKAGE=demo_blank
TAG=latest
COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'
all: ## Run an entire CI pipeline
make install format lint
##
install: ## Install dependencies
uv sync --all-extras --all-groups --link-mode symlink --locked
update: ## Update dependencies
dipdup self update -q
uv sync --all-extras --all-groups --link-mode symlink -U
format: ## Format code with ruff
ruff format .
lint: ## Lint code with ruff and mypy
ruff check --fix .
mypy .
##
image: ## Build Docker image
docker buildx build . -t ${PACKAGE}:${TAG} --load
up: ## Start Compose stack
docker-compose -f ${COMPOSE} up -d --build
docker-compose -f ${COMPOSE} logs -f
down: ## Stop Compose stack
docker-compose -f ${COMPOSE} down
##