summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2016-11-25 11:46:36 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2016-11-25 12:43:50 +0000
commit874249655ddd8f369cc074e064aa6f58911a4ea6 (patch)
tree02cc0f46f6f6321d1cf7a481cfd1d95125741847 /tox.ini
parent7ebd69218fe6b089b609a44824a986800982da0a (diff)
downloaddeluge-874249655ddd8f369cc074e064aa6f58911a4ea6.tar.gz
deluge-874249655ddd8f369cc074e064aa6f58911a4ea6.tar.bz2
deluge-874249655ddd8f369cc074e064aa6f58911a4ea6.zip
[Tests] Replace isort test with flake8-isort
* Move the known_third_party back to setup.cfg with comments.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini19
1 files changed, 3 insertions, 16 deletions
diff --git a/tox.ini b/tox.ini
index 8492a4962..6972cda84 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,7 +13,7 @@ max-line-length = 120
ignore = E301,E309
[tox]
-envlist = py27, flake8, isort, docs, pylint
+envlist = py27, flake8, docs, pylint
minversion=1.8
[testenv]
@@ -88,21 +88,6 @@ commands = {[testenv:pydef]commands}
# Code style verification
###########################
-[testenv:isort]
-deps =
- {[testenv]deps}
- isort>=4.2.5
-whitelist_externals =
- {[testenv]whitelist_externals}
- isort
-commands =
- isort --version
- python -c "import subprocess, sys; output = subprocess.check_output(\
- 'isort -q --diff --recursive deluge docs packaging *.py\
- -o pygtk -o gtk -o gobject -o gtk.gdk -o pango -o cairo -o pangocairo\
- ', shell=True);\
- print output; sys.exit(bool(output))"
-
[testenv:flake8]
# Disble site packages to avoid using system flake8 which uses hardcoded python path which imports the wrong libraries.
sitepackages = False
@@ -110,9 +95,11 @@ deps =
{[testenv]deps}
flake8
flake8-quotes
+ flake8-isort
pep8-naming
commands =
flake8 --version
+ python -c 'import isort; print(isort.__version__)'
flake8
[testenv:flake8-complexity]