Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ccc8d commit 3a807e3Copy full SHA for 3a807e3
Makefile
@@ -3,6 +3,7 @@ PYTHON=python3.4
3
IPYTHON=ipython3
4
SYSTEM_PYTHON=$(shell which $(PYTHON))
5
SOURCE=./lib
6
+MYPY=$(VENV)/bin/mypy
7
8
virtual-env:
9
$(SYSTEM_PYTHON) -m venv $(VENV)
@@ -17,6 +18,12 @@ pygraphviz:
17
18
@rm -rf pygraphviz
19
20
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
+
27
deps: pygraphviz
28
. $(VENV)/bin/activate && \
29
pip3.4 install -r requirements.txt
@@ -36,3 +43,8 @@ repl:
36
43
37
44
flakes:
38
45
flake8 $(SOURCE)
46
47
+types: $(MYPY)
48
+ for FILE in ./lib/*.py; do mypy $$FILE; done
49
50
+check: flakes types
0 commit comments