hosts/ci/lint.sh
gfyoung a2a7d12448
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.
2018-08-07 00:14:56 -07:00

11 lines
219 B
Bash
Executable File

#!/bin/bash
echo "Linting repository..."
source activate hosts
if [ "$PYTHON_VERSION" = "2.7" ]; then
echo "Skipping flake8 because it is broken on Python $PYTHON_VERSION"
else
flake8 --max-line-length 120
fi