Fix zuul jobs broken due to pip upversion
python 2.7 zuul jobs such as py27 and pylint could fail
when trying to import bandit using the new pip
since bandit 1.7 was released Dec 12 and is python3 only.
The cpp file header was only changed in this review to
trigger the appropriate zuul jobs.
Partial-Bug: #1907678
Change-Id: Idb1e97d16773d36027d29f4eb100d8b453a8069f
Signed-off-by: albailey <Al.Bailey@windriver.com>
(cherry picked from commit 08130cd625
)
This commit is contained in:
parent
381791afcf
commit
b12f3745b1
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// Copyright (c) 2014 Wind River Systems, Inc.
|
||||
// Copyright (c) 2020 Wind River Systems, Inc.
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
|
|
@ -3,5 +3,5 @@ bashate >= 0.2
|
|||
mock
|
||||
PyYAML >= 3.1.0
|
||||
yamllint >= 0.5.2
|
||||
#spec_cleaner>=1.0.9
|
||||
bandit!=1.6.0,>=1.1.0,<2.0.0
|
||||
isort<5;python_version>="3.5"
|
||||
bandit;python_version>="3.5"
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -51,7 +51,7 @@ commands =
|
|||
-print0 | xargs -0 yamllint -d '\{extends: relaxed, rules: \{line-length: \{max: 260\}\}\}'"
|
||||
|
||||
[testenv:pylint]
|
||||
basepython = python2.7
|
||||
basepython = python3
|
||||
sitepackages = False
|
||||
|
||||
deps = {[testenv]deps}
|
||||
|
@ -97,7 +97,7 @@ show-source = True
|
|||
ignore = H102,H104,H105,H301,H306,H401,H403,H404,H405,H702,H903,
|
||||
W504,W605,E123,E125,E501
|
||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-*
|
||||
# TODO: H106 Don’t put vim configuration in source files (off by default).
|
||||
# TODO: H106 Do not put vim configuration in source files (off by default).
|
||||
# H203 Use assertIs(Not)None to check for None (off by default).
|
||||
# TODO: H904 Delay string interpolations at logging calls (off by default).
|
||||
enable-extensions = H203
|
||||
|
|
Loading…
Reference in New Issue