blob: d827b062fff1ab262bb7e54b70994c0032149b9f [file] [log] [blame]
kdanylov aka koderedcefda2018-06-29 13:38:20 +03001.PHONY: mypy pylint pylint_e docker
koder aka kdanilov22d134e2016-11-08 11:33:19 +02002
koder aka kdanilov22d134e2016-11-08 11:33:19 +02003ALL_FILES=$(shell find wally/ -type f -name '*.py')
kdanylov aka koder026e5f22017-05-15 01:04:39 +03004STUBS="stubs:../venvs/wally/lib/python3.5/site-packages/"
koder aka kdanilov22d134e2016-11-08 11:33:19 +02005
6mypy:
kdanylov aka koder026e5f22017-05-15 01:04:39 +03007 MYPYPATH=${STUBS} python -m mypy --ignore-missing-imports --follow-imports=skip ${ALL_FILES}
koder aka kdanilov39e449e2016-12-17 15:15:26 +02008
9PYLINT_FMT=--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
10
11pylint:
kdanylov aka koder026e5f22017-05-15 01:04:39 +030012 python -m pylint '${PYLINT_FMT}' --rcfile=pylint.rc ${ALL_FILES}
koder aka kdanilov39e449e2016-12-17 15:15:26 +020013
14pylint_e:
kdanylov aka koder026e5f22017-05-15 01:04:39 +030015 python3 -m pylint -E '${PYLINT_FMT}' --rcfile=pylint.rc ${ALL_FILES}
kdanylov aka koderedcefda2018-06-29 13:38:20 +030016
17docker:
18 docker build --squash -t wally:v2 .
19 docker tag wally:v2 ${DOCKER_ID_USER}/wally:v2
20
21docker_push:
22 docker push ${DOCKER_ID_USER}/wally:v2
23