-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (36 loc) · 1.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
manage = python manage.py
# Argument passed from commandline, optional for some rules, mandatory for others.
arg =
.PHONY: serve
serve:
$(manage) runserver
.PHONY: serve-public
serve-public:
$(manage) runserver 0.0.0.0:8000
.PHONY: celery
celery:
celery -A config.celery_app worker -l info --beat
.PHONY: test
test:
ENABLE_LDAP=0 ENABLE_LDAP_SECONDARY=0 $(manage) test -v2 --settings=config.settings.test
.PHONY: test-keepdb
test-keepdb:
ENABLE_LDAP=0 ENABLE_LDAP_SECONDARY=0 $(manage) test -v2 --settings=config.settings.test --keepdb
.PHONY: _test-snap
_test-snap:
ENABLE_LDAP=0 ENABLE_LDAP_SECONDARY=0 $(manage) test -v2 --settings=config.settings.test --keepdb --snapshot-update usersec.tests.test_serializers adminsec.tests.test_views_api
.PHONY: test-snap
test-snap: _test-snap format
.PHONY: format
format:
ruff format
ruff check --fix
ruff check
.PHONY: migrations
migrations:
$(manage) makemigrations
.PHONY: _migrate
_migrate: migrations
$(manage) migrate
.PHONY: migrate
migrate: _migrate format