-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
43 lines (33 loc) · 897 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
.PHONY: install
install:
poetry install
.PHONY: install-pre-commit
install-pre-commit:
poetry run pre-commit uninstall; poetry run pre-commit install
.PHONY: lint
lint:
poetry run pre-commit run --all-files
.PHONY: migrate
migrate:
poetry run python -m cooking_core.manage migrate
.PHONY: migrations
migrations:
poetry run python -m cooking_core.manage makemigrations
.PHONY: run-server
run-server:
poetry run python -m cooking_core.manage runserver
.PHONY: shell
shell:
poetry run python -m cooking_core.manage shell
.PHONY: superuser
superuser:
poetry run python -m cooking_core.manage createsuperuser
.PHONY: test
test:
poetry run pytest -v -rs -n auto --show-capture=no
.PHONY: up-dependencies-only
up-dependencies-only:
test -f .env || touch .env
docker-compose -f docker-compose.dev.yml up --force-recreate db
.PHONY: update
update: install migrate install-pre-commit ;