Bandit should only be installed in py3 env

Running tox for linters fails since the bandit being pulled
in is python3 only. This is similar to other bugs where a new
version is released which drops py2 support.

In this env, we only include bandit if we are testing and running
in py3.

Partial-Bug: 1922590
Change-Id: I11b7d974ae3b64e7846e1420521dee0d48128fc5
Signed-off-by: albailey <Al.Bailey@windriver.com>
This commit is contained in:
albailey 2021-04-07 17:52:02 -04:00
parent a2a2a88887
commit 14e1a9a82b
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# hacking pulls in flake8
hacking
bashate >= 0.2
bandit!=1.6.0,>=1.1.0,<2.0.0
bandit;python_version>="3.5"