-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (38 loc) · 1.03 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
.PHONY: $(MAKECMDGOALS)
MAKEFLAGS += --no-print-directory
##
## 🚧 DipDup developer tools
##
PACKAGE=manutd_indexer
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
##
install: ## Install dependencies
poetry install
update: ## Update dependencies
poetry update
dipdup self update -q
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 .
##
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
##