Skip to content

Commit b7e9b01

Browse files
committed
Run flake8 in all builds on Travis.
1 parent 44b0bbc commit b7e9b01

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

.travis.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ env:
1919
- USE_OPTIONAL=true
2020
- USE_OPTIONAL=false
2121

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

flake8-run.sh

Lines changed: 5 additions & 7 deletions
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)