add pep8 autoformat checks to travis

This commit is contained in:
Thomas Kriechbaumer 2015-05-27 11:34:14 +02:00
parent 161bc2cfaa
commit 8037830696
3 changed files with 9 additions and 4 deletions

3
.gitignore vendored
View File

@ -9,4 +9,5 @@ MANIFEST
.coverage
.idea/
__pycache__
netlib.egg-info/
netlib.egg-info/
pathod/

View File

@ -7,9 +7,11 @@ python:
install:
- "pip install --src . -r requirements.txt"
# command to run tests, e.g. python setup.py test
script:
script:
- "nosetests --with-cov --cov-report term-missing"
after_success:
- "autopep8 -i -r -a -a . && test -z \"$(git status -s)\""
- "autoflake -r -i --remove-all-unused-imports --remove-unused-variables . && test -z \"$(git status -s)\""
after_success:
- coveralls
notifications:
irc:
@ -22,4 +24,4 @@ cache:
- /home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages
- /home/travis/virtualenv/python2.7.9/bin
- /home/travis/virtualenv/pypy-2.5.0/site-packages
- /home/travis/virtualenv/pypy-2.5.0/bin
- /home/travis/virtualenv/pypy-2.5.0/bin

View File

@ -50,6 +50,8 @@ setup(
"nose>=1.3.0",
"nose-cov>=1.6",
"coveralls>=0.4.1",
"autopep8>=1.0.3",
"autoflake>=0.6.6",
"pathod>=%s, <%s" % (version.MINORVERSION, version.NEXT_MINORVERSION)
]
}