forked from html5lib/html5lib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert requirements-*.txt to be inclusive; flake8 script introduced
- Loading branch information
Showing
8 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash -e | ||
|
||
if [[ ! -x $(which flake8) ]]; then | ||
echo "fatal: flake8 not found on $PATH. Exiting." | ||
exit 1 | ||
fi | ||
|
||
if [[ $FLAKE == "true" ]]; then | ||
find html5lib/ -name '*.py' -and -not -name 'constants.py' -print0 | xargs -0 flake8 --ignore=E501 | ||
flake8 --max-line-length=99 --ignore=E126 html5lib/constants.py | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash -e | ||
|
||
if [[ $USE_OPTIONAL != "true" && $USE_OPTIONAL != "false" ]]; then | ||
echo "fatal: \$USE_OPTIONAL not set to true or false. Exiting." | ||
exit 1 | ||
fi | ||
|
||
pip install -r requirements-test.txt --use-mirrors | ||
|
||
if [[ $USE_OPTIONAL == "true" && $TRAVIS_PYTHON_VERSION != "pypy" ]]; then | ||
if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then | ||
pip install -r requirements-optional-2.6.txt --use-mirrors | ||
else | ||
pip install -r requirements-optional-cpython.txt --use-mirrors | ||
fi | ||
fi | ||
|
||
if [[ $FLAKE == "true" ]]; then | ||
pip install --use-mirrors flake8 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
-r requirements-optional-cpython.txt | ||
|
||
# Can be used to force attributes to be serialized in alphabetical | ||
# order. | ||
ordereddict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
-r requirements-optional.txt | ||
|
||
# lxml is supported with its own treebuilder ("lxml") and otherwise | ||
# uses the standard ElementTree support | ||
lxml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
-r requirements.txt | ||
|
||
# We support a Genshi treewalker that can be used to serialize Genshi | ||
# streams. | ||
genshi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
-r requirements.txt | ||
|
||
nose | ||
ordereddict # Python 2.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters