Skip to content

Commit 77c63f9

Browse files
committed
Run flake8 in all builds on Travis.
1 parent 91876a7 commit 77c63f9

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

.travis.yml

-12
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@ env:
1717
- USE_OPTIONAL=true
1818
- USE_OPTIONAL=false
1919

20-
matrix:
21-
exclude:
22-
- python: "2.7"
23-
env: USE_OPTIONAL=false
24-
- python: "3.4"
25-
env: USE_OPTIONAL=false
26-
include:
27-
- python: "2.7"
28-
env: USE_OPTIONAL=false FLAKE=true
29-
- python: "3.4"
30-
env: USE_OPTIONAL=false FLAKE=true
31-
3220
before_install:
3321
- git submodule update --init --recursive
3422

flake8-run.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ if [[ ! -x $(which flake8) ]]; then
55
exit 1
66
fi
77

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

0 commit comments

Comments
 (0)