mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
14
tests/wpt/web-platform-tests/tools/html5lib/flake8-run.sh
Executable file
14
tests/wpt/web-platform-tests/tools/html5lib/flake8-run.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
if [[ ! -x $(which flake8) ]]; then
|
||||
echo "fatal: flake8 not found on $PATH. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $TRAVIS != "true" || $FLAKE == "true" ]]; then
|
||||
find html5lib/ -name '*.py' -and -not -name 'constants.py' -print0 | xargs -0 flake8 --ignore=E501
|
||||
flake1=$?
|
||||
flake8 --max-line-length=99 --ignore=E126 html5lib/constants.py
|
||||
flake2=$?
|
||||
exit $[$flake1 || $flake2]
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue