From d8309e4dbd30d68707ada47ab4da56095080bf0c Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 6 Feb 2018 14:42:09 +0100 Subject: [PATCH 1/2] Test: Py3.6 flake8 --select=E901,E999,F821,F822,F823 Run flake8 on Python 3 to find syntax errors and undefined names. __--exit-zero__ treats _all_ errors as warnings. --- sdks/python/tox.ini | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini index 31bcc9cdb572..a5adb9a36fe6 100644 --- a/sdks/python/tox.ini +++ b/sdks/python/tox.ini @@ -17,7 +17,7 @@ [tox] # new environments will be excluded by default unless explicitly added to envlist. -envlist = py27,py27gcp,py27cython,lint,docs +envlist = py27,py27gcp,py27cython,py36,lint,docs toxworkdir = {toxinidir}/target/.tox [pycodestyle] @@ -90,6 +90,16 @@ commands = python setup.py test passenv = TRAVIS* +[testenv:py36] +# autocomplete_test depends on nose when invoked directly. +deps = + flake8==3.5.0 +commands = + python --version + pip --version + flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics +passenv = TRAVIS* + [testenv:lint] deps= nose==1.3.7 From 556396c12990e987394f6a030e73705ee0a77f99 Mon Sep 17 00:00:00 2001 From: cclauss Date: Fri, 2 Mar 2018 01:23:14 +0100 Subject: [PATCH 2/2] Remove invalid comment --- sdks/python/tox.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini index a5adb9a36fe6..7cfca4d543a7 100644 --- a/sdks/python/tox.ini +++ b/sdks/python/tox.ini @@ -91,7 +91,6 @@ commands = passenv = TRAVIS* [testenv:py36] -# autocomplete_test depends on nose when invoked directly. deps = flake8==3.5.0 commands =