diff options
| author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-05-27 11:34:14 +0200 |
|---|---|---|
| committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-05-27 13:13:04 +0200 |
| commit | 80378306960379f12aca72309dc47437cd1a825c (patch) | |
| tree | 7e142df4614108550255967bc5a8ecafec3905a3 | |
| parent | 161bc2cfaa8b70b4c2cab5562784df34013452e1 (diff) | |
| download | mitmproxy-80378306960379f12aca72309dc47437cd1a825c.tar.gz mitmproxy-80378306960379f12aca72309dc47437cd1a825c.tar.bz2 mitmproxy-80378306960379f12aca72309dc47437cd1a825c.zip | |
add pep8 autoformat checks to travis
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | .travis.yml | 8 | ||||
| -rw-r--r-- | setup.py | 2 |
3 files changed, 9 insertions, 4 deletions
@@ -9,4 +9,5 @@ MANIFEST .coverage .idea/ __pycache__ -netlib.egg-info/
\ No newline at end of file +netlib.egg-info/ +pathod/ diff --git a/.travis.yml b/.travis.yml index aac6b272..77ba0bcf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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
\ No newline at end of file + - /home/travis/virtualenv/pypy-2.5.0/bin @@ -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) ] } |
