forked from materialsvirtuallab/maml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 817 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
## Helper for testing
PROJECT_NAME := maml
.PHONY: all pycodestyle flake8 mypy pydocstyle pylint test
all: pycodestyle flake8 mypy pydocstyle
pycodestyle:
echo "pycodestyle checks..."
pycodestyle $(PROJECT_NAME)
echo "--- Done ---"
flake8:
echo "flake8 checks..."
flake8 --count --show-source --statistics $(PROJECT_NAME)
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics $(PROJECT_NAME)
echo "--- Done ---"
mypy:
echo "mypy checks..."
mypy $(PROJECT_NAME)
echo "--- Done ---"
pydocstyle:
echo "pydocstyle checks..."
pydocstyle --count $(PROJECT_NAME)
echo "--- Done ---"
pylint:
echo "pylint checks..."
pylint --exit-zero $(PROJECT_NAME)
echo "--- Done ---"
test:
echo "pytest checks..."
pytest $(PROJECT_NAME)
echo "--- Done ---"