From eeef066e30e7fbdee0420c5624d8fd4c3d59d5ea Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Tue, 3 Nov 2020 13:43:16 -0800 Subject: [PATCH] Don't run pytype in Python 3.5. The next release of pytype drops support for running under Python 3.5: https://github.com/google/pytype/issues/677. --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 30f0cad6..c6529bce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,8 @@ script: - pip install ipython - python -m pytest # Now run the tests with IPython. - pylint fire --ignore=test_components_py3.py,parser_fuzz_test.py,console - - if [[ $TRAVIS_PYTHON_VERSION != 3.4 ]]; then + - if [[ $TRAVIS_PYTHON_VERSION != 3.4 && \ + $TRAVIS_PYTHON_VERSION != 3.5 ]]; then pip install pytype; fi # Run type-checking, excluding files that define or use py3 features in py2. @@ -27,6 +28,7 @@ script: fire/fire_test.py fire/inspectutils_test.py fire/test_components_py3.py; - elif [[ $TRAVIS_PYTHON_VERSION != 3.4 ]]; then + elif [[ $TRAVIS_PYTHON_VERSION != 3.4 && \ + $TRAVIS_PYTHON_VERSION != 3.5 ]]; then pytype; fi