Skip to content

Commit 4b8c8b7

Browse files
committed
Treat all warnings as errors.
Explicitly ignores the RedirectPanel's deprecation warning.
1 parent 7c0b02b commit 4b8c8b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Pending
1414
* Dropped support for the Python 3.9, it has reached its end of life date.
1515
* Toggle tracking the toolbar's queries when using
1616
``debug_toolbar.store.DatabaseStore`` with ``SKIP_TOOLBAR_QUERIES``.
17+
* Updated tox configuration to treat all warnings as errors.
1718

1819
6.1.0 (2025-10-30)
1920
------------------

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ passenv=
4343
GITHUB_*
4444
setenv =
4545
PYTHONPATH = {toxinidir}
46-
PYTHONWARNINGS = d
46+
PYTHONWARNINGS = error,ignore:The RedirectsPanel is deprecated:DeprecationWarning
4747
DB_NAME = {env:DB_NAME:debug_toolbar}
4848
DB_USER = {env:DB_USER:debug_toolbar}
4949
DB_HOST = {env:DB_HOST:localhost}
5050
DB_PASSWORD = {env:DB_PASSWORD:debug_toolbar}
5151
DJANGO_SETTINGS_MODULE = tests.settings
5252
allowlist_externals = make
5353
pip_pre = True
54-
commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests}
54+
commands = python -b -m coverage run -m django test -v2 {posargs:tests}
5555

5656

5757
[testenv:py{310,311,312,313,314}-dj{42,51,52,60,main}-{postgresql,psycopg3}]

0 commit comments

Comments
 (0)