-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
31 lines (23 loc) · 850 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
SHELL := /bin/bash
include .env
.PHONY: help
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: install
install: ## Make venv and install requirements
@poetry lock
@poetry install
@poetry run pre-commit install
@pre-commit autoupdate
migrate: ## Make and run migrations
@poetry run python manage.py makemigrations
@poetry run python manage.py migrate
@poetry run python manage.py collectstatic --noinput
.PHONY: test
test: ## Run tests
@poetry run skjold -v audit Pipfile.lock
@poetry run python manage.py test --verbosity=0 --parallel --failfast
.PHONY: run
run: ## Run the Django server
@poetry run python manage.py runserver
start: install migrate run ## Install requirements, apply migrations, then start development server