-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 992 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
47
48
49
50
.SHELLFLAGS: -ec
PYTHON = pipenv run python3
# Default make target
default:
$(MAKE) help
# Installing PastaStore default packages from Pipfile
deps:
@pipenv install
# Installing PastaStore develop and default packages from Pipfile
dev-deps:
@pipenv install --dev
# Running PastaStore REST API in debug mode
debug: deps
@echo "Starting PastaStore in debug mode.."
@$(PYTHON) run.py --debug --env development
# Running PastaStore REST API
.PHONY: run
run: deps
@echo "Starting PastaStore.."
@$(PYTHON) run.py --env development
# Running PastaStore REST API
help: deps
@$(PYTHON) run.py --help
# Removing the virtualenv created in deps make target
clean:
@pipenv --rm
# Updating Pipfile.lock
lock:
@pipenv lock
# Launching the flake8 linter
run-linting: dev-deps
@pipenv run flake8
# Launching the bandit secuirty linter
run-security-linting: dev-deps
@pipenv run bandit -r . --configfile .bandit.yaml
# Running unit tests with pytest
test: dev-deps
@pipenv run pytest