Skip to content

Commit 95d5cba

Browse files
committed
Add tox linters for import ordering and docstrings.
1 parent 6e1e726 commit 95d5cba

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ env:
77
- TOX_ENV=py27-lint-readme
88
- TOX_ENV=py27
99
- TOX_ENV=py34
10+
- TOX_ENV=py27-lint-imports
11+
- TOX_ENV=py27-lint-docstrings
1012

1113
install:
1214
# Setup git to allow git operations.
@@ -17,6 +19,8 @@ install:
1719
matrix:
1820
allow_failures:
1921
- env: TOX_ENV=py34
22+
- env: TOX_ENV=py27-lint-imports
23+
- env: TOX_ENV=py27-lint-docstrings
2024

2125
script: tox -e $TOX_ENV
2226

tox.ini

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# TODO: py34 to envlist
22
# TODO: implement doc linting
33
[tox]
4-
envlist = py34-lint, py27-lint, py27-lint-readme, py27
4+
envlist = py34-lint, py27-lint, py27-lint-imports, py27-lint-docstrings, py27-lint-readme, py27
55
source_dir = planemo
66
test_dir = tests
77

88
[testenv]
99
commands = {envpython} setup.py nosetests []
10-
#commands = nosetests []
1110
deps =
1211
-rrequirements.txt
1312
py27: cwltool
@@ -20,6 +19,20 @@ commands = flake8 {[tox]source_dir} {[tox]source_dir}
2019
skip_install = True
2120
deps = flake8
2221

22+
[testenv:py27-lint-imports]
23+
commands = flake8 {[tox]source_dir} {[tox]source_dir}
24+
skip_install = True
25+
deps =
26+
flake8
27+
flake8-import-order
28+
29+
[testenv:py27-lint-docstrings]
30+
commands = flake8 {[tox]source_dir} {[tox]source_dir}
31+
skip_install = True
32+
deps =
33+
flake8
34+
flake8_docstrings
35+
2336
[testenv:py34-lint]
2437
commands = flake8 {[tox]source_dir} {[tox]source_dir}
2538
skip_install = True

0 commit comments

Comments
 (0)