diff --git a/.gitignore b/.gitignore index ef830f75a..70059e0f9 100644 --- a/.gitignore +++ b/.gitignore @@ -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 aac6b2729..77ba0bcf8 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 diff --git a/setup.py b/setup.py index 86a55c4c2..3680889b7 100644 --- a/setup.py +++ b/setup.py @@ -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) ] }