Travis: run mypy with Python 3.8 as well (#3146)

This runs mypy both with Python 3.7 and 3.8. In Python 3.8,
mypy switched from using typed-ast to using Python's built-in ast.
This patch ensures that both are tested.
This commit is contained in:
Sebastian Rittau authored and Jelle Zijlstra committed 2019-07-25 07:43:52 -07:00
1 parent 32ee49c79c
commit b20e5b6c14
2 files changed
+8 -3

No files matched your search

+7 -2
View File
@@ -1,4 +1,4 @@
dist: xenial
dist: bionic
language: python
python: 3.7
@@ -9,7 +9,12 @@ matrix:
env:
- TEST_CMD="./tests/pytype_test.py"
- INSTALL="test"
- name: "mypy"
- name: "mypy (typed-ast)"
env:
- TEST_CMD="./tests/mypy_test.py"
- INSTALL="mypy"
- name: "mypy (ast)"
python: 3.8-dev
env:
- TEST_CMD="./tests/mypy_test.py"
- INSTALL="mypy"