-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (34 loc) · 780 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
.PHONY: black-format \
black-format-check \
bootstrap \
cheeseshop \
coverage-html \
isort \
isort-check \
mypy \
nuke-venv \
run-tests \
PIPENV_RUN = pipenv run
black-format:
@$(PIPENV_RUN) black krakus/ tests/ -S -l 119
black-format-check:
@$(PIPENV_RUN) black krakus/ tests/ -S -l 119 --check -q
bootstrap: nuke-venv cheeseshop
cheeseshop:
@pipenv install --dev
coverage-html:
@$(PIPENV_RUN) coverage html
isort:
@$(PIPENV_RUN) isort krakus/ tests/ --recursive -tc
isort-check:
@$(PIPENV_RUN) isort krakus/ tests/ --recursive --check-only -tc -q
mypy:
@$(PIPENV_RUN) mypy krakus/
nuke-venv:
@pipenv --rm;\
EXIT_CODE=$$?;\
if [ $$EXIT_CODE -eq 1 ]; then\
echo Skipping virtualenv removal;\
fi
run-tests:
@$(PIPENV_RUN) py.test -s --cov krakus