forked from wirehack7/log4j-honeypot-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (26 loc) · 718 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
# Makefile mainly for running code quality suff
PROJECTFOLDER := app
PIPENV := pipenv
BLACK := $(PIPENV) run python -m black
ISORT := $(PIPENV) run python -m isort
MYPY := $(PIPENV) run python -m mypy
PYLINT := $(PIPENV) run python -m pylint
PYTEST := $(PIPENV) run py.test
test: black isort mypy pylint doctest
mypy:
${MYPY} ${PROJECTFOLDER} \
--disallow-untyped-calls \
--disallow-untyped-defs \
--disallow-incomplete-defs \
--check-untyped-defs
black:
${BLACK} --check ${PROJECTFOLDER}/
isort:
${ISORT} --check ${PROJECTFOLDER}/
format:
${BLACK} ${PROJECTFOLDER}/
${ISORT} ${PROJECTFOLDER}/
pylint:
${PYLINT} ${PROJECTFOLDER}/
doctest:
${PYTEST} --doctest-modules ${PROJECTFOLDER}