forked from numerique-gouv/django-dsfr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 782 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
# Loading environment variables
ifneq (,$(wildcard ./.env))
include .env
export LOCAL_PORT
endif
# Setting defaults for env variables
ifdef LOCAL_PORT
local_port := $(LOCAL_PORT)
else
local_port := 8000
endif
# Commands
checkstyle:
poetry run pre-commit run --all-files
init:
poetry install
poetry run pre-commit install
poetry run python manage.py migrate
poetry run python manage.py collectstatic --noinput
poetry run python manage.py import_sample_data
poetry shell
runserver:
poetry run python manage.py runserver $(local_port)
test:
poetry run python manage.py test
update_dsfr:
bash scripts/download_latest.sh
poetry run python manage.py trim_dist
poetry run python manage.py integrity_checksums
poetry run python manage.py collecstatic --noinput