diff --git a/docs/changes.rst b/docs/changes.rst index cbd995030..8c61dfa78 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -14,6 +14,7 @@ Pending * Dropped support for the Python 3.9, it has reached its end of life date. * Toggle tracking the toolbar's queries when using ``debug_toolbar.store.DatabaseStore`` with ``SKIP_TOOLBAR_QUERIES``. +* Updated tox configuration to treat all warnings as errors. 6.1.0 (2025-10-30) ------------------ diff --git a/tox.ini b/tox.ini index e7058e0fd..9c1a157c6 100644 --- a/tox.ini +++ b/tox.ini @@ -43,7 +43,7 @@ passenv= GITHUB_* setenv = PYTHONPATH = {toxinidir} - PYTHONWARNINGS = d + PYTHONWARNINGS = default,ignore:The RedirectsPanel is deprecated:DeprecationWarning DB_NAME = {env:DB_NAME:debug_toolbar} DB_USER = {env:DB_USER:debug_toolbar} DB_HOST = {env:DB_HOST:localhost} @@ -51,7 +51,7 @@ setenv = DJANGO_SETTINGS_MODULE = tests.settings allowlist_externals = make pip_pre = True -commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests} +commands = python -b -m coverage run -m django test -v2 {posargs:tests} [testenv:py{310,311,312,313,314}-dj{42,51,52,60,main}-{postgresql,psycopg3}]