-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
46 lines (31 loc) · 916 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
45
46
PYTHON_FOLDERS = api bounca certificate_engine vuetifyforms x509_pki superuser_signup
LOCAL_SERVER_PORT ?= 8000
default:
@echo "No default target!"
frontend_collect:
python manage.py collectstatic --link --noinput
runserver:
python manage.py runserver 0.0.0.0:$(LOCAL_SERVER_PORT)
quality: flake8 black_check isort_check
isort_check:
find $(PYTHON_FOLDERS) -path '**/migrations' -prune -o -name '*.py' -print | xargs isort -c
isort_fix:
find $(PYTHON_FOLDERS) -path '**/migrations' -prune -o -name '*.py' -print | xargs isort
flake8:
flake8 $(PYTHON_FOLDERS)
black_fix:
black .
black_check:
black --check .
website:
$(MAKE) -C ./docs html
runwebsiteserver:
python3 -m http.server -d ./docs/build/html 8090
createvueforms:
python3 manage.py generate_forms
docserver:
python3 -m http.server --directory ./docs/build/html 8090
update-python-packages:
pur
migrate:
python manage.py migrate