-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 917 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
.PHONY: homework-i-run
# Run homework.
homework-i-run:
@make init-dev
@python manage.py runserver
.PHONY: homework-i-purge
# Delete all created artifacts, related with homework execution
homework-i-purge:
@echo Goodbye
.PHONY: init-dev
# Init environment for development
init-dev:
@pip install --upgrade pip && \
pip install --requirement requirements.txt && \
pre-commit install
.PHONY: pre-commit-run
# Run tools for files from commit.
pre-commit-run:
@pre-commit run
.PHONY: pre-commit-run-all
# Run tools for all files.
pre-commit-run-all:
@pre-commit run --all-files
.PHONY: migrations
# Make migrations
migrations:
@python manage.py makemigrations
.PHONY: migrate
# Migrate
migrate:
@python manage.py migrate
.PHONY: init-dev-i-create-superuser
init-dev-i-create-superuser:
@DJANGO_SUPERUSER_PASSWORD=admin123 python manage.py createsuperuser --user admin --email [email protected] --no-input