Due to https://www.python.org/dev/peps/pep-0479/ stopIteration
will not be caught anymore and needs to be use return instead.
updated with relevant changes.
Change-Id: If25b6ccecd46fed0225a230096041996fb91c0c5
closes-bug: #1837778
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Depends-On: https://review.openstack.org/560493
Change-Id: I7149bd55da66479bda83e8bd2dd2b806e7394342
Signed-off-by: Chuck Short <chucks@redhat.com>
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I90d3b61a00cb3e3da0d0c89e49e1a9278aed43c3
This patch replaces explicit list of bandit tests to run
with a list of bandit tests to skip (only 3 are skipped).
It also replaces legacy-formatted bandit.yaml with what current
bandit version expects,
and improves the 'bandit' tox target somewhat.
Change-Id: If1c7be8377b92dac2e47bfcfd6de2847ace31c32
TrivialFix:In the change[1] os_testr changed under the covers
from using testr to stestr, so that we now get the following
warning:
ostestr.py:120:
UserWarning: No .stestr.conf file found in the CWD.
Please create one to to replace the .testr.conf. You
can find a script to do this in the stestr git repository.
So remove the .testr.conf and add .stestr.conf which was
generated using a utility script as documented here [2].
[1] Id7cb2a39a8308f1413608dcf19273a1d7f33592e
[2] https://media.readthedocs.org/pdf/stestr/stable/stestr.pdf
Change-Id: I084215311928c0e66d45977748e5a2263bbc1444
tox command shows WARNING message as follow.
"WARNING:test command found but not installed in testenv"
If we use "find" command in tox.ini, we should use the full path.
This patch changes fix command path and remove the Warning message.
Change-Id: I6b8f487afc84ef5ecb5e0e4ec865ab0bb2cf2688
Running py2* post py3* tests results in InvocationError. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Change-Id: Ia3fb0b63eddad01cd253ac441a2036ca322a0164
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None
Change-Id: I7b2f51052b736442613001c6ab38a8832c46fcc0
We support py35 now.We do not have python 3.4 in setup.cfg which declares the explicit
supported versions.so it is no need to keep the supoort for py34.
Change-Id: Ie634245d455a8a5a58c09e23b418a10147ca4743
see:https://review.openstack.org/#/c/349069/
Currently there are no translation files in glare repo. Because of
that some bandit checks have failed during pep8 run. The patch
fixes this behavior. It also adds gitreview file and
adds additional exception for idea files to gitignore
Additionally tox -edocs has failed because doc configuration is
absent. The patch has added basic configuration for sphinx so
users can generate docs for glare.
Change-Id: I817d8f4e072ff300923faf13871c29a80f226336