Skip to content

Commit

Permalink
Run isort as part of local and ci tests to check import order
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhmather committed Nov 23, 2019
1 parent c01ee0e commit 13cc697
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .isort.cfg
@@ -0,0 +1,7 @@
[settings]
multi_line_output=5
balanced_wrapping=true
include_trailing_comma=true
use_parentheses=true
line_length=78
lines_after_imports=2
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -10,13 +10,15 @@ python:
install:
- "pip install -e ."
- "pip install coveralls"
- "pip install isort"
- "pip install pyflakes"
- "pip install pycodestyle"
- "pip install pylint"
- "pip install mypy"

script:
- "coverage run --source=mnemonicode setup.py test"
- "isort --check-only --diff --recursive mnemonicode setup.py"
- "pycodestyle mnemonicode setup.py"
- "pyflakes mnemonicode setup.py"
- "pylint -E mnemonicode setup.py"
Expand Down
10 changes: 9 additions & 1 deletion tox.ini
@@ -1,10 +1,18 @@
[tox]
envlist = py34,py35,py36,py37,py38,pycodestyle,pyflakes,pylint,mypy
envlist = py34,py35,py36,py37,py38,isort,pycodestyle,pyflakes,pylint,mypy

[testenv]
commands =
python setup.py test

[testenv:isort]
basepython = python3
deps =
isort
skip_install = True
commands =
isort --check-only --diff --recursive mnemonicode setup.py

[testenv:pycodestyle]
basepython = python3
deps =
Expand Down

0 comments on commit 13cc697

Please sign in to comment.