[Tests] Fix for flake8 in tox

Force install flake8 in tox to avoid the system flake8 being used if
available.

Remove unneeded whitelist entries
This commit is contained in:
bendikro 2016-01-14 21:18:12 +01:00 committed by Calum Lind
parent 815f67467a
commit 9d13234e23

15
tox.ini
View file

@ -60,7 +60,7 @@ commands =
setenv = {[testenv]setenv}:{env:PWD}/deluge/tests
whitelist_externals = trial
commands =
trial --reporter=deluge-reporter deluge/tests
trial --reporter=deluge-reporter deluge/tests
[testenv:plugins]
commands = py.test deluge/plugins
@ -90,22 +90,19 @@ commands =
python -c "import subprocess, sys; output = subprocess.check_output('isort -q --diff --recursive deluge docs packaging *.py', shell=True); print output; sys.exit(len(output) != 0)"
[testenv:flake8]
# Force flake8 pip install as system flake8 uses hardcoded python path which imports the wrong libraries.
install_command = pip -v install --ignore-installed {opts} {packages}
setenv = {[testenv]setenv}
whitelist_externals =
{[testenv]whitelist_externals}
flake8
deps =
{[testenv]deps}
flake8
pep8-naming
commands = flake8
commands =
flake8 --version
flake8
[testenv:flake8-complexity]
setenv = {[testenv]setenv}
whitelist_externals =
{[testenv]whitelist_externals}
flake8
sh
deps =
{[testenv:flake8]deps}
mccabe