From: gfyoung Date: Fri, 3 Aug 2018 17:51:08 +0000 (-0700) Subject: Skip flake8 check on Python on 2.7 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a2a7d12448172958fa275c153c1ecb22ff0e3933;p=stevenblack-hosts.git Skip flake8 check on Python on 2.7 flake8 is broken with Python 2.7, but we have all other builds linting, so not an issue for us. --- diff --git a/ci/lint.sh b/ci/lint.sh index 0a25aba33..3d9995870 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -3,4 +3,8 @@ echo "Linting repository..." source activate hosts -flake8 --max-line-length 120 +if [ "$PYTHON_VERSION" = "2.7" ]; then + echo "Skipping flake8 because it is broken on Python $PYTHON_VERSION" +else + flake8 --max-line-length 120 +fi