File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ skip_install = True
7474basepython = python3
7575deps = pre-commit>=2.9.3
7676commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
77+ setenv =
78+ # pre-commit and tools it launches are not clean of this warning.
79+ PYTHONWARNDEFAULTENCODING =
7780
7881[testenv:docs]
7982basepython = python3
@@ -88,6 +91,9 @@ commands =
8891 # changelog in the docs; this does not happen on ReadTheDocs because it uses
8992 # the standard sphinx command so the 'changelog_towncrier_draft' is never set there
9093 sphinx-build -W --keep-going -b html doc/en doc/en/_build/html -t changelog_towncrier_draft {posargs:}
94+ setenv =
95+ # Sphinx is not clean of this warning.
96+ PYTHONWARNDEFAULTENCODING =
9197
9298[testenv:docs-checklinks]
9399basepython = python3
@@ -96,6 +102,9 @@ changedir = doc/en
96102deps = -r{toxinidir}/doc/en/requirements.txt
97103commands =
98104 sphinx-build -W -q --keep-going -b linkcheck . _build
105+ setenv =
106+ # Sphinx is not clean of this warning.
107+ PYTHONWARNDEFAULTENCODING =
99108
100109[testenv:regen]
101110changedir = doc/en
@@ -110,6 +119,9 @@ allowlist_externals =
110119 make
111120commands =
112121 make regen
122+ setenv =
123+ # We don't want this warning to reach regen output.
124+ PYTHONWARNDEFAULTENCODING =
113125
114126[testenv:plugins]
115127# use latest versions of all plugins, including pre-releases
You can’t perform that action at this time.
0 commit comments