Merge "Move linters dependencies to tox.ini"
This commit is contained in:
commit
cd0c51d89f
|
@ -3,7 +3,6 @@ amqp==2.1.1
|
|||
appdirs==1.4.0
|
||||
asn1crypto==0.23.0
|
||||
Babel==2.6.0
|
||||
bandit==1.4.0
|
||||
cachetools==2.0.0
|
||||
cffi==1.14.0
|
||||
chardet==3.0.4
|
||||
|
@ -78,7 +77,6 @@ positional==1.2.1
|
|||
prettytable==0.7.2
|
||||
pycodestyle==2.5.0
|
||||
pycparser==2.18
|
||||
pyflakes==2.1.0
|
||||
Pygments==2.2.0
|
||||
pyinotify==0.9.6
|
||||
pymongo==3.0.2
|
||||
|
|
|
@ -6,19 +6,13 @@
|
|||
# added in alphabetical order, however, some dependencies may need to
|
||||
# be installed in a specific order.
|
||||
#
|
||||
# Hacking should appear first in case something else depends on pep8
|
||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
||||
#
|
||||
bandit!=1.6.0,>=1.4.0 # Apache-2.0
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
flake8-import-order==0.12 # LGPLv3
|
||||
freezegun>=0.3.15 # Apache-2.0
|
||||
nodeenv>=0.9.4 # BSD
|
||||
pytest>=5.3.5 # MIT
|
||||
pytest-django>=3.8.0 # BSD (3 clause)
|
||||
pytest-html>=2.0.1 #MPL-2.0
|
||||
python-memcached>=1.59 # PSF
|
||||
pylint==2.6.0 # GPLv2
|
||||
selenium>=2.50.1 # Apache-2.0
|
||||
testscenarios>=0.4 # Apache-2.0/BSD
|
||||
testtools>=2.2.0 # MIT
|
||||
|
|
18
tox.ini
18
tox.ini
|
@ -23,6 +23,8 @@ deps =
|
|||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
# Unit test for a local hacking rule requires hacking.
|
||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
bash {toxinidir}/tools/unit_tests.sh {toxinidir} {posargs}
|
||||
|
@ -32,13 +34,20 @@ deps =
|
|||
-c{toxinidir}/lower-constraints.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
# Unit test for a local hacking rule requires hacking.
|
||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
||||
|
||||
[testenv:venv]
|
||||
envdir = {toxworkdir}/venv
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
envdir = {toxworkdir}/venv
|
||||
envdir = {toxworkdir}/linters
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
flake8-import-order==0.12 # LGPLv3
|
||||
pylint==2.6.0 # GPLv2
|
||||
bandit!=1.6.0,>=1.4.0 # Apache-2.0
|
||||
setenv =
|
||||
DJANGO_SETTINGS_MODULE=openstack_dashboard.test.settings
|
||||
commands =
|
||||
|
@ -131,7 +140,6 @@ commands =
|
|||
doc8 doc/source
|
||||
|
||||
[testenv:pdf-docs]
|
||||
basepython = python3
|
||||
envdir = {toxworkdir}/docs
|
||||
deps = {[testenv:docs]deps}
|
||||
whitelist_externals =
|
||||
|
@ -164,11 +172,13 @@ commands =
|
|||
{envpython} {toxinidir}/manage.py compilemessages -v 0 --traceback
|
||||
|
||||
[testenv:bandit]
|
||||
envdir = {toxworkdir}/venv
|
||||
envdir = {toxworkdir}/linters
|
||||
deps = {[testenv:pep8]deps}
|
||||
commands = bandit -r horizon openstack_auth openstack_dashboard -n5 -x tests -ll
|
||||
|
||||
[testenv:bandit-baseline]
|
||||
envdir = {toxworkdir}/venv
|
||||
envdir = {toxworkdir}/linters
|
||||
deps = {[testenv:pep8]deps}
|
||||
commands = bandit-baseline -r horizon openstack_auth openstack_dashboard -n5 -x tests -ii -ll
|
||||
|
||||
[flake8]
|
||||
|
|
Loading…
Reference in New Issue