Permalink
Browse files

Add tox linters for import ordering and docstrings.

  • Loading branch information...
jmchilton committed Apr 12, 2016
1 parent 6e1e726 commit 95d5cbaf2be921110491803bd9ff3919bd1f185b
Showing with 19 additions and 2 deletions.
  1. +4 −0 .travis.yml
  2. +15 −2 tox.ini
@@ -7,6 +7,8 @@ env:
- TOX_ENV=py27-lint-readme
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=py27-lint-imports
- TOX_ENV=py27-lint-docstrings

install:
# Setup git to allow git operations.
@@ -17,6 +19,8 @@ install:
matrix:
allow_failures:
- env: TOX_ENV=py34
- env: TOX_ENV=py27-lint-imports
- env: TOX_ENV=py27-lint-docstrings

script: tox -e $TOX_ENV

17 tox.ini
@@ -1,13 +1,12 @@
# TODO: py34 to envlist
# TODO: implement doc linting
[tox]
envlist = py34-lint, py27-lint, py27-lint-readme, py27
envlist = py34-lint, py27-lint, py27-lint-imports, py27-lint-docstrings, py27-lint-readme, py27
source_dir = planemo
test_dir = tests

[testenv]
commands = {envpython} setup.py nosetests []
#commands = nosetests []
deps =
-rrequirements.txt
py27: cwltool
@@ -20,6 +19,20 @@ commands = flake8 {[tox]source_dir} {[tox]source_dir}
skip_install = True
deps = flake8

[testenv:py27-lint-imports]
commands = flake8 {[tox]source_dir} {[tox]source_dir}
skip_install = True
deps =
flake8
flake8-import-order

[testenv:py27-lint-docstrings]
commands = flake8 {[tox]source_dir} {[tox]source_dir}
skip_install = True
deps =
flake8
flake8_docstrings

[testenv:py34-lint]
commands = flake8 {[tox]source_dir} {[tox]source_dir}
skip_install = True

0 comments on commit 95d5cba

Please sign in to comment.