Skip to content

Commit e44670f

Browse files
committed
add trivial mypy check
1 parent 7534bb0 commit e44670f

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ matrix:
5050
- python-gtk2
5151
- os: linux
5252
env:
53-
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true
53+
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true TYPING=true
5454
addons:
5555
apt:
5656
packages:

ci/install_travis.sh

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ if [ "$LINT" ]; then
114114
pip install cpplint
115115
fi
116116

117+
if [ "$TYPING" ]; then
118+
pip install mypy-lang
119+
fi
120+
117121
if [ "$COVERAGE" ]; then
118122
pip install coverage pytest-cov
119123
fi

ci/typing.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
echo "inside $0"
4+
5+
source activate pandas
6+
7+
RET=0
8+
9+
if [ "$TYPING" ]; then
10+
11+
echo "Typing *.py"
12+
mypy pandas/core/base.py
13+
if [ $? -ne "0" ]; then
14+
RET=1
15+
fi
16+
echo "Typing *.py DONE"
17+
18+
else
19+
echo "NOT checking typing"
20+
fi
21+
22+
exit $RET

0 commit comments

Comments
 (0)