From a4ca3655ad7ce99481586fcce85f559e76df94b3 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 7 May 2014 19:58:36 +0200 Subject: [PATCH] tox: Make flake8 test import order --- setup.cfg | 3 +++ tox.ini | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 5e409001..586da78b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,5 @@ +[flake8] +application-import-names = mopidy,tests + [wheel] universal = 1 diff --git a/tox.ini b/tox.ini index 367db508..a688304b 100644 --- a/tox.ini +++ b/tox.ini @@ -15,5 +15,7 @@ changedir = docs commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:flake8] -deps = flake8 +deps = + flake8 + flake8-import-order commands = flake8 docs/ fabfile.py mopidy/ setup.py tests/