From a2a7d12448172958fa275c153c1ecb22ff0e3933 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Fri, 3 Aug 2018 10:51:08 -0700 Subject: [PATCH] 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. --- ci/lint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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