-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 999 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
# Docker Compose commands
compose-up:
docker compose up --build
compose-down:
docker compose down
# Clean up Docker Compose services, images, volumes, and caches
clean:
docker compose down -v
docker system prune -af --volumes
docker network rm $(docker network ls -q)
docker rmi -f $(docker images -q)
docker rm -f $(docker ps -a -q)
# Format Python code
fmt:
ruff format .
lint-mp:
mypy .
lint-rf:
ruff check --fix .
# Help command
help:
@echo "Makefile commands:"
@echo " compose-up Start the Docker Compose services"
@echo " compose-down Stop the Docker Compose services"
@echo " clean Stop and remove all Docker Compose services, images, volumes, and caches"
@echo " fmt Format Python code using Ruff"
@echo " lint-mp Lint Python code using Mypy"
@echo " lint-rf Lint Python code using Ruff"
@echo " help Show this help message"
.PHONY: compose-up compose-down clean help fmt lint-rf lint-mp