Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a807e3

Browse files
committed
Added mypy support.
1 parent c8ccc8d commit 3a807e3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PYTHON=python3.4
33
IPYTHON=ipython3
44
SYSTEM_PYTHON=$(shell which $(PYTHON))
55
SOURCE=./lib
6+
MYPY=$(VENV)/bin/mypy
67

78
virtual-env:
89
$(SYSTEM_PYTHON) -m venv $(VENV)
@@ -17,6 +18,12 @@ pygraphviz:
1718
@rm -rf pygraphviz
1819

1920

21+
$(MYPY):
22+
git clone https://github.com/JukkaL/mypy.git
23+
. $(VENV)/bin/activate && \
24+
cd mypy && $(PYTHON) setup.py install
25+
rm -rf mypy
26+
2027
deps: pygraphviz
2128
. $(VENV)/bin/activate && \
2229
pip3.4 install -r requirements.txt
@@ -36,3 +43,8 @@ repl:
3643

3744
flakes:
3845
flake8 $(SOURCE)
46+
47+
types: $(MYPY)
48+
for FILE in ./lib/*.py; do mypy $$FILE; done
49+
50+
check: flakes types

0 commit comments

Comments
 (0)