-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
41 lines (31 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
DESIGN_SYSTEM_VERSION=`cat .design-system-version`
TESTS=tests/
build:
pipenv install --dev
build-docker:
docker build .
build-kubernetes:
docker build -f _infra/docker/Dockerfile .
load-design-system-templates:
pipenv run ./scripts/load_templates.sh $(DESIGN_SYSTEM_VERSION)
start: load-design-system-templates
pipenv run python run.py
docker-test: REDIS_PORT=6379
docker-test: test
#remove -i 70612 once jinja2 is upgraded past v3.1.4
lint:
pipenv check -i 70612
pipenv run isort .
pipenv run black --line-length 120 .
pipenv run djlint frontstage/ --ignore=H037,H021
pipenv run flake8
lint-check: load-design-system-templates
pipenv check -i 70612
pipenv run isort . --check-only
pipenv run black --line-length 120 --check .
pipenv run djlint frontstage/ --ignore=H037,H021
pipenv run flake8
test: lint-check
APP_SETTINGS=TestingConfig pipenv run pytest $(TESTS) --cov frontstage --cov-report term-missing
test-html: lint-check
APP_SETTINGS=TestingConfig pipenv run pytest $(TESTS) --cov frontstage --cov-report html