-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 1.16 KB
/
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
SHELL := /bin/bash
#
# VENV COMMANDS
#
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
format: ## Format codebase
(source venv/bin/activate; ruff format .; djhtml .;)
lint: ## Lint codebase
(source venv/bin/activate; ruff check .; mypy .;)
collect: ## Collect static assets
(source venv/bin/activate; yarn; npx webpack --config webpack.config.js --progress; ./manage.py collectstatic --no-input)
install: ## Install requirements
(source venv/bin/activate; pip3 install -r config/requirements/local.txt)
migration: ## Create migrations
(source venv/bin/activate; ./manage.py makemigrations)
migrate: ## Apply migrations
(source venv/bin/activate; ./manage.py migrate)
reset: ## Reset database
(source venv/bin/activate; ./manage.py reset_db)
run: ## Run server
(source venv/bin/activate; ./manage.py procrastinate worker & ./manage.py runserver)
superuser: ## Create superuser
(source venv/bin/activate; ./manage.py createsuperuser)
test: ## Test codebase
(source venv/bin/activate; ./manage.py test --settings=config.settings.test --failfast)
turtle: ## Run shell_plus
(source venv/bin/activate; ./manage.py shell_plus)