Skip to content

Commit

Permalink
travis: Run pycodestyle on commits.
Browse files Browse the repository at this point in the history
Run pycodestyle in continuous integration. This will cause
jobs to fail if new warnings are introduced, which helps
maintain a clean codebase where new issues are more obvious.

Ignore E501 line to long, since local style doesn't respect it.
  • Loading branch information
rillian committed Jun 3, 2019
1 parent 2ab4863 commit bbabc23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ python:
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install coveralls
- pip install coveralls pycodestyle

# command to run tests
script:
- coverage run setup.py test
- pycodestyle --ignore E501 *.py HookTest
after_success:
- coverage combine
- coveralls
Expand Down

0 comments on commit bbabc23

Please sign in to comment.