mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
committed by
Jelle Zijlstra
parent
32ee49c79c
commit
b20e5b6c14
@@ -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"
|
||||
|
||||
@@ -88,7 +88,7 @@ def main():
|
||||
print("Cannot import mypy. Did you install it?")
|
||||
sys.exit(1)
|
||||
|
||||
versions = [(3, 7), (3, 6), (3, 5), (3, 4), (2, 7)]
|
||||
versions = [(3, 8), (3, 7), (3, 6), (3, 5), (3, 4), (2, 7)]
|
||||
if args.python_version:
|
||||
versions = [v for v in versions
|
||||
if any(('%d.%d' % v).startswith(av) for av in args.python_version)]
|
||||
|
||||
Reference in New Issue
Block a user