Skip to content

Commit a6696b0

Browse files
committed
Have Travis run mypy
1 parent e7131dc commit a6696b0

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
@@ -24,7 +24,7 @@ before_install:
2424
- sudo ldconfig
2525
- cd ..
2626
- pip install coverage coveralls
27-
- if [[ $RUN_LINTER ]]; then pip install pylint black; fi
27+
- if [[ $RUN_LINTER ]]; then pip install pylint black mypy; fi
2828
- |
2929
if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then
3030
sudo apt-get install -y nodejs;
@@ -35,6 +35,7 @@ script:
3535
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then export MM_FORCE_EXT_TESTS=1; fi
3636
- CFLAGS="-Werror -Wall -Wextra" coverage run --source maxminddb setup.py test
3737
- if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then snyk test --org=maxmind --file=requirements.txt; fi
38+
- if [[ $RUN_LINTER ]]; then mypy maxminddb tests; fi
3839
- if [[ $RUN_LINTER ]]; then pylint --rcfile .pylintrc maxminddb/*.py; fi
3940
- if [[ $RUN_LINTER ]]; then ./.travis-black.sh; fi
4041

0 commit comments

Comments
 (0)