aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--.travis.yml8
-rw-r--r--setup.py2
3 files changed, 9 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index ef830f75..70059e0f 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 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
diff --git a/setup.py b/setup.py
index 86a55c4c..3680889b 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)
]
}