Skip to content

Commit 5157fa5

Browse files
committed
Test with mypy via Travis
1 parent a1a6c6c commit 5157fa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ install:
2929
- pip install requests_mock coveralls
3030
- |
3131
if [[ $RUN_LINTER ]]; then
32-
pip install --upgrade pylint black
32+
pip install --upgrade pylint black mypy
3333
fi
3434
- "if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then snyk test --org=maxmind; fi"
3535
script:
3636
- coverage run --source=geoip2 setup.py test
37+
- "if [[ $RUN_LINTER ]]; then mypy geoip2 tests; fi"
3738
- "if [[ $RUN_LINTER ]]; then ./.travis-pylint.sh; fi"
3839
- "if [[ $RUN_LINTER ]]; then ./.travis-black.sh; fi"
3940
after_success:

0 commit comments

Comments
 (0)