-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
77 lines (60 loc) · 1.56 KB
/
makefile
File metadata and controls
77 lines (60 loc) · 1.56 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
path := .
.PHONY: help
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install:
pipenv install
activate:
pipenv shell
debug_container := $(shell docker ps | grep reservation_debug_container | awk '{print $$1}')
bash:
docker exec -it $(debug_container) bash
test:
docker exec -it $(debug_container) python manage.py test
migration:
docker exec -it $(debug_container) python manage.py makemigrations
migrate:
docker exec -it $(debug_container) python manage.py migrate
superuser:
docker exec -it $(debug_container) python manage.py createsuperuser
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f
rebuild:
docker compose build --no-cache
lint: black isort pylint
isort:
@echo
@echo "Start Running isort..."
@echo "========================"
isort --atomic .
@echo "========================"
@echo "Stop Running isort..."
@echo
black:
@echo
@echo "Start Running black..."
@echo "========================"
black .
@echo "========================"
@echo "Stop Running black..."
@echo
pylint:
@echo
@echo "Start Running pylint..."
@echo "========================"
pylint *.py --load-plugins pylint_django --django-settings-module=reservation.settings --ignore=manage.py
@echo "========================"
@echo "Stop Running pylint..."
@echo
mypy:
@echo
@echo "Start Running mypy..."
@echo "========================"
mypy .
@echo "========================"
@echo "Stop Running mypy..."
@echo