From f8552fc95845376fc4e80078d65b97ead1dc2ed9 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 26 Aug 2019 21:46:26 +0100 Subject: [PATCH] tox: Enable warnings Let's try to minimize the chances of [1] hitting us in the future through lots of annoying logging. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-August/008723.html Change-Id: I70292634fa564e34381108fef55f3a8f9a20fa2e Signed-off-by: Stephen Finucane --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index e3324d13c0..ea571126be 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,11 @@ ignore_basepython_conflict = True basepython = python3 usedevelop = True setenv = - VIRTUAL_ENV={envdir} + VIRTUAL_ENV = {envdir} + PYTHONDONTWRITEBYTECODE = 1 + PYTHONWARNINGS = once + py{3,36,37}:PYTHONWARNINGS = once,ignore::ImportWarning:backports + whitelist_externals = bash find