Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Enforce PEP8 on any changed hunks. #77

Merged
merged 1 commit into from
Apr 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@
language: python

install:
- pip install coveralls
- pip install coveralls flake8

python:
- "2.7"

# command to install dependencies and run tests
script:
coverage run --source=bootstrap_cfn setup.py test
script:
# If we are a Pull request, check the changes introduced in it for pep8
#
# Or if we are just on a branch, work out what we've changed since we
# branched off master
- |
set -e -o pipefail;
if [ "$TRAVIS_PULL_REQUEST" != "false" ]
then git diff $TRAVIS_COMMIT_RANGE | flake8 --diff;
else git fetch -q origin master:origin/master && git diff origin/master... | flake8 --diff
fi

# Then run the tests
- coverage run --source=bootstrap_cfn setup.py test

after_success:
coveralls
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length=160