Skip to content

Commit 9bc70e6

Browse files
committed
Fix flake8-run.sh to return non-zero on failure.
1 parent af6667a commit 9bc70e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flake8-run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ fi
77

88
if [[ $FLAKE == "true" ]]; then
99
find html5lib/ -name '*.py' -and -not -name 'constants.py' -print0 | xargs -0 flake8 --ignore=E501
10+
flake1=$?
1011
flake8 --max-line-length=99 --ignore=E126 html5lib/constants.py
12+
flake2=$?
13+
exit $[$flake1 || $flake2]
1114
fi

0 commit comments

Comments
 (0)