-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (36 loc) · 774 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
46
package_dir := bot
.PHONY: install
install:
python3 -m venv venv
. venv/bin/activate && \
pip install -r requirements.txt -r dev-requirements.txt
.PHONY: lint
lint:
black --check $(package_dir)
ruff $(package_dir)
mypy $(package_dir) --strict
.PHONY: reformat
reformat:
black $(package_dir)
ruff $(package_dir) --fix
.PHONY: migration
migration:
alembic revision --autogenerate -m $(message) --rev-id $(rev_id)
.PHONY: migrate
alembic upgrade head
.PHONY: app-build
app-build:
docker-compose build
.PHONY: app-run
app-run:
docker-compose stop
docker-compose up -d --remove-orphans
.PHONY: app-stop
app-stop:
docker-compose stop
.PHONY: app-down
app-down:
docker-compose down
.PHONY: app-destroy
app-destroy:
docker-compose down -v --remove-orphans