Skip to content

Commit 95f7039

Browse files
committed
add trivial mypy check
1 parent 0e54ec8 commit 95f7039

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ matrix:
7474
- FULL_DEPS=true
7575
- CLIPBOARD=xsel
7676
- COVERAGE=true
77+
- TYPING=true
7778
- CACHE_NAME="35_nslow"
7879
# - USE_CACHE=true # Don't use cache for 35_nslow
7980
addons:

Diff for: ci/install_travis.sh

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

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

Diff for: 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)