From 99cc79aed5df0c2e5390400c303437bb5ad8798f Mon Sep 17 00:00:00 2001 From: Scott Little Date: Thu, 15 Apr 2021 15:08:14 -0400 Subject: [PATCH] Update .gitreview for r/stx.5.0 Also need to pull in ... https://review.opendev.org/c/starlingx/clients/+/786504 to get passed recent zull complaints. Signed-off-by: Scott Little Change-Id: Ic5a4f48c3044c1a0f8c30816ed7991317509ffc5 --- .gitreview | 1 + test-requirements.txt | 5 +++-- tox.ini | 11 +++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitreview b/.gitreview index 3a3b0a1..a1863bb 100644 --- a/.gitreview +++ b/.gitreview @@ -2,3 +2,4 @@ host=review.opendev.org port=29418 project=starlingx/clients.git +defaultbranch=r/stx.5.0 diff --git a/test-requirements.txt b/test-requirements.txt index 0375f1c..3765a25 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +1,5 @@ +hacking bashate >= 0.2 +bandit;python_version>="3.5" PyYAML >= 3.1.0 -yamllint >= 0.5.2 -bandit!=1.6.0,>=1.1.0,<2.0.0 +yamllint<1.26.1;python_version>="3.0" # GPLv2 diff --git a/tox.ini b/tox.ini index c7a9331..3833780 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,13 @@ [tox] -envlist = linters +envlist = linters, pep8 minversion = 2.3 skipsdist = True [testenv] -install_command = pip install -U {opts} {packages} +install_command = pip install \ + -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \ + {opts} {packages} + setenv = VIRTUAL_ENV={envdir} OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 @@ -36,9 +39,6 @@ ignore=H102 basepython = python3 usedevelop = False skip_install = True -# hacking pins the version of flake8 -deps = - hacking!=0.13.0,<0.14,>=0.12.0 commands = flake8 @@ -74,5 +74,4 @@ commands = reno new {posargs} [testenv:bandit] basepython = python3 description = Bandit code scan for *.py files under config folder -deps = -r{toxinidir}/test-requirements.txt commands = bandit -r {toxinidir}/ -x '**/.tox/**',**/.eggs/** -lll