-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 949 Bytes
/
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
.PHONY: $(MAKECMDGOALS)
MAKEFLAGS += --no-print-directory
##
## 🚧 DipDup developer tools
##
PACKAGE=dipdup_indexer_dex_test_2
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 format lint
format: ## Format with all tools
make black
lint: ## Lint with all tools
make ruff mypy
##
black: ## Format with black
black .
ruff: ## Lint with ruff
ruff check --fix .
mypy: ## Lint with mypy
mypy --no-incremental --exclude ${PACKAGE} .
##
image: ## Build Docker image
docker buildx build . -t ${PACKAGE}:${TAG}
up: ## Run Compose stack
docker-compose -f ${COMPOSE} up -d --build
docker-compose -f ${COMPOSE} logs -f
down: ## Stop Compose stack
docker-compose -f ${COMPOSE} down
##