-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (39 loc) · 969 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: local
local:
python manage.py runserver
check:
python manage.py check
migration:
python manage.py makemigrations
migrate:
python manage.py migrate
# coverage vs fcov: both for coverage but coverage runs migrations
coverage:
pytest --cov=sandbox --migrations -n 2 --dist loadfile
# fcov == "fast coverage" by skipping migrations checking.
# // processes ( need + package pytest-xdist)
# Save that for CI.(here processes: N==4)
fcov:
@echo "Running fast coverage check"
@pytest --cov=sandbox -n 2 --dist loadfile -q
# handmatig pre-commit
lint:
pre-commit run -a
# pip-tools commands
dev-compile:
pip-compile reqs/dev.in
req-compile:
pip-compile reqs/req.in
# django_extention commands
rs-ex:
python manage.py runserver_plus --nopin
shell:
python manage.py shell_plus
shell-ip:
python manage.py shell_plus --ipython
models:
python manage.py list_model_info
help-admin:
python manage.py admin_generator my_app
url:
python manage.py show_urls