-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (44 loc) · 1023 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
update:
@pip install --upgrade pip
install:
@pip install -r services/web/requirements.txt
install-dev:
@pip install -r services/web/requirements-dev.txt
run-gunicorn:
@gunicorn -b 0.0.0.0:5000 manage:app
run:
@python manage.py run -h 0.0.0.0
test:
@python -m pytest
pre-commit:
@pre-commit install
initial-tag:
@git tag -a -m "Initial tag." v0.0.1
init-cz:
@cz init
bump-tag:
@cz bump --check-consistency --changelog
start-db-containers:
@sudo docker-compose -f database/docker-compose.yml up --build -d
stop-db-containers:
@sudo docker-compose -f sdatabase/docker-compose.yml down -v
create-db:
@python manage.py create_db
seed-db:
@python manage.py seed_db
test-local:
@curl localhost
build:
@docker build -t blog-service:latest .
run-dev:
@docker run -p5000:5000 --env-file=./.env blog-service:latest
stop-dev:
@docker-compose -f docker-compose-dev.yml down
coverage:
@coverage run -m pytest
@coverage report -m
lint:
@isort .
@black .
@flake8
@pylint --rcfile=.pylintrc ./api