mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
[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:
parent
815f67467a
commit
9d13234e23
1 changed files with 6 additions and 9 deletions
13
tox.ini
13
tox.ini
|
@ -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)"
|
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]
|
[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}
|
setenv = {[testenv]setenv}
|
||||||
whitelist_externals =
|
|
||||||
{[testenv]whitelist_externals}
|
|
||||||
flake8
|
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
flake8
|
flake8
|
||||||
pep8-naming
|
pep8-naming
|
||||||
commands = flake8
|
commands =
|
||||||
|
flake8 --version
|
||||||
|
flake8
|
||||||
|
|
||||||
[testenv:flake8-complexity]
|
[testenv:flake8-complexity]
|
||||||
setenv = {[testenv]setenv}
|
setenv = {[testenv]setenv}
|
||||||
whitelist_externals =
|
|
||||||
{[testenv]whitelist_externals}
|
|
||||||
flake8
|
|
||||||
sh
|
|
||||||
deps =
|
deps =
|
||||||
{[testenv:flake8]deps}
|
{[testenv:flake8]deps}
|
||||||
mccabe
|
mccabe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue