Merge "Follow-up: Move linters dependencies to tox.ini"
This commit is contained in:
commit
1f74030e66
@ -31,7 +31,6 @@ greenlet==0.4.14
|
|||||||
httplib2==0.9.1
|
httplib2==0.9.1
|
||||||
imagesize==0.7.1
|
imagesize==0.7.1
|
||||||
iso8601==0.1.11
|
iso8601==0.1.11
|
||||||
isort==4.3.21
|
|
||||||
Jinja2==2.10
|
Jinja2==2.10
|
||||||
jmespath==0.9.0
|
jmespath==0.9.0
|
||||||
jsonpatch==1.16
|
jsonpatch==1.16
|
||||||
@ -109,7 +108,6 @@ python-novaclient==9.1.0
|
|||||||
python-subunit==1.0.0
|
python-subunit==1.0.0
|
||||||
pytz==2013.6
|
pytz==2013.6
|
||||||
PyYAML==5.3.1
|
PyYAML==5.3.1
|
||||||
reno==3.1.0
|
|
||||||
repoze.lru==0.7
|
repoze.lru==0.7
|
||||||
requests==2.18.0
|
requests==2.18.0
|
||||||
requestsexceptions==1.2.0
|
requestsexceptions==1.2.0
|
||||||
|
@ -10,9 +10,6 @@ testscenarios>=0.4 # Apache-2.0/BSD
|
|||||||
WebTest>=2.0.27 # MIT
|
WebTest>=2.0.27 # MIT
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
stestr>=1.0.0 # Apache-2.0
|
stestr>=1.0.0 # Apache-2.0
|
||||||
reno>=3.1.0 # Apache-2.0
|
|
||||||
ddt>=1.0.1 # MIT
|
ddt>=1.0.1 # MIT
|
||||||
astroid==2.4.0 # LGPLv2.1
|
|
||||||
isort==4.3.21 # MIT
|
|
||||||
# Needed to run DB commands in virtualenvs
|
# Needed to run DB commands in virtualenvs
|
||||||
PyMySQL>=0.7.6 # MIT License
|
PyMySQL>=0.7.6 # MIT License
|
||||||
|
17
tox.ini
17
tox.ini
@ -97,11 +97,11 @@ deps = -r{toxinidir}/doc/requirements.txt
|
|||||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
envdir = {toxworkdir}/shared
|
envdir = {toxworkdir}/lint
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
{[testenv:bashate]deps}
|
bashate>=0.5.1 # Apache-2.0
|
||||||
{[testenv:bandit]deps}
|
bandit!=1.6.0,>=1.1.0 # Apache-2.0
|
||||||
flake8-import-order==0.18.1 # LGPLv3
|
flake8-import-order==0.18.1 # LGPLv3
|
||||||
pylint==2.5.3 # GPLv2
|
pylint==2.5.3 # GPLv2
|
||||||
commands=
|
commands=
|
||||||
@ -206,20 +206,17 @@ extension =
|
|||||||
import_exceptions = neutron._i18n
|
import_exceptions = neutron._i18n
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
envdir = {toxworkdir}/shared
|
envdir = {toxworkdir}/lint
|
||||||
|
deps = {[testenv:pep8]deps}
|
||||||
# B104: Possible binding to all interfaces
|
# B104: Possible binding to all interfaces
|
||||||
# B303: prohibit list calls: md5, sha1
|
# B303: prohibit list calls: md5, sha1
|
||||||
# B311: Standard pseudo-random generators are not suitable for security/cryptographic purpose
|
# B311: Standard pseudo-random generators are not suitable for security/cryptographic purpose
|
||||||
# B604: any_other_function_with_shell_equals_true
|
# B604: any_other_function_with_shell_equals_true
|
||||||
deps =
|
|
||||||
bandit!=1.6.0,>=1.1.0 # Apache-2.0
|
|
||||||
-r{toxinidir}/test-requirements.txt
|
|
||||||
commands = bandit -r neutron -x tests -n5 -s B104,B303,B311,B604
|
commands = bandit -r neutron -x tests -n5 -s B104,B303,B311,B604
|
||||||
|
|
||||||
[testenv:bashate]
|
[testenv:bashate]
|
||||||
envdir = {toxworkdir}/shared
|
envdir = {toxworkdir}/lint
|
||||||
deps =
|
deps = {[testenv:pep8]deps}
|
||||||
bashate>=0.5.1 # Apache-2.0
|
|
||||||
commands = bash -c "find {toxinidir} \
|
commands = bash -c "find {toxinidir} \
|
||||||
-not \( -type d -name .tox\* -prune \) \
|
-not \( -type d -name .tox\* -prune \) \
|
||||||
-not \( -type d -name .venv\* -prune \) \
|
-not \( -type d -name .venv\* -prune \) \
|
||||||
|
Loading…
Reference in New Issue
Block a user