Line length is now a soft lint.
@@ -14,5 +14,8 @@ flake8 --version | grep '^3\.[6-9]\.' >/dev/null || \
CHANGED_FILES="$(git diff --name-only master... | grep '\.py$' | tr '\n' ' ')"
if [ "$CHANGED_FILES" != "" ]
then
- exec flake8 --show-source $CHANGED_FILES
+ # soft complaint on too-long-lines
+ flake8 --select=E501 --show-source $CHANGED_FILES
+ # hard complaint on really long lines
+ exec flake8 --max-line-length=127 --show-source $CHANGED_FILES
fi
