From 8be1bb677f1aed54b4256eeb1f188c62f4f3849a Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Thu, 12 Jan 2023 20:34:09 +0800 Subject: [PATCH] Fix tox errors 1. Ignore base python conflict error New version of tox (4.2.4?) fails if there is mismatch in spec attributes [1]. We can change the base python to match with the test envs, but it may make it inconvenient to setup local development env, so just ignore the error to workaround the issue. 2. Allow running bash in bandit test [1] https://github.com/tox-dev/tox/pull/2824/ --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 56d742f9..ca414677 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ [tox] envlist = bandit, docs, flake8, mypy, py310 +ignore_base_python_conflict = True [testenv] basepython = python3 @@ -39,6 +40,7 @@ commands = basepython = python3 skip_install = true deps = bandit +allowlist_externals = /bin/bash commands = ; 0.0.0.0 is set in BaseConfiguration, which is ok for local dev and it ; will be replace with a specific host IP when deploy to a server. So, it