From 0c177ca7d4a246f40bf5371ee420b233ae56bceb Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Tue, 22 Oct 2024 18:53:49 +0200 Subject: [PATCH] tox: Turn pytest warnings into errors Don't allow warnings during testing. Signed-off-by: Pieter De Gendt --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d342a56f..4ec94e89 100644 --- a/tox.ini +++ b/tox.ini @@ -37,6 +37,6 @@ setenv = # For instance: ./.tox/py3/tmp/ TOXTEMPDIR={envtmpdir} commands = - python -m pytest --cov-report=html --cov=west {posargs:tests} --basetemp='{envtmpdir}/pytest with space/' + python -m pytest -W error --cov-report=html --cov=west {posargs:tests} --basetemp='{envtmpdir}/pytest with space/' python -m flake8 --config='{toxinidir}'/tox.ini '{toxinidir}' python -m mypy --config-file='{toxinidir}'/tox.ini --package=west