From 14e1a9a82b017fb5d2fa3fd62b5c0943058ef0ee Mon Sep 17 00:00:00 2001 From: albailey Date: Wed, 7 Apr 2021 17:52:02 -0400 Subject: [PATCH] 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 --- test-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 8e3e0bf..983269d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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"