-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
67 lines (60 loc) · 1.1 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ci-workaround:
sudo sed -i 's/azure\.//' /etc/apt/sources.list
sudo apt-get -o Acquire::Retries=5 update
install-os:
sudo apt-get -o Acquire::Retries=5 install \
openssl \
wkhtmltopdf \
eatmydata \
python3-nose2
install-py:
pip install -r requirements-lib.txt
pip install -r requirements-devops.txt
test:
sh test-coverage
install-package:
pip install .
clean:
rm --recursive --force \
$(PWD)/build \
$(PWD)/dist \
$(PWD)/htmlcov \
$(PWD)/a38.egg-info \
$(PWD)/.coverage
lint:
isort \
--check \
$(PWD)/a38 \
$(PWD)/tests \
setup.py
flake8 \
--ignore=E126,E203,E501,W503 \
--max-line-length 120 \
--indent-size 4 \
--jobs=8 \
$(PWD)/a38 \
$(PWD)/tests \
setup.py
bandit \
--recursive \
--number=3 \
-lll \
-iii \
$(PWD)/a38 \
$(PWD)/tests \
setup.py
lint-dev:
isort \
--atomic \
$(PWD)/a38 \
$(PWD)/tests \
setup.py
$(eval PIP_DEPS=$(shell awk '{printf("%s,",$$1)}' requirements-lib.txt | sed '$$s/,$$//'))
autoflake \
--imports=$(PIP_DEPS) \
--recursive \
--in-place \
--remove-unused-variables \
$(PWD)/a38 \
$(PWD)/tests \
setup.py