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
74
74
basepython = python3
75
75
deps = pre-commit>=2.9.3
76
76
commands = 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 =
77
80
78
81
[testenv:docs]
79
82
basepython = python3
@@ -88,6 +91,9 @@ commands =
88
91
# changelog in the docs; this does not happen on ReadTheDocs because it uses
89
92
# the standard sphinx command so the 'changelog_towncrier_draft' is never set there
90
93
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 =
91
97
92
98
[testenv:docs-checklinks]
93
99
basepython = python3
@@ -96,6 +102,9 @@ changedir = doc/en
96
102
deps = -r{toxinidir}/doc/en/requirements.txt
97
103
commands =
98
104
sphinx-build -W -q --keep-going -b linkcheck . _build
105
+ setenv =
106
+ # Sphinx is not clean of this warning.
107
+ PYTHONWARNDEFAULTENCODING =
99
108
100
109
[testenv:regen]
101
110
changedir = doc/en
@@ -110,6 +119,9 @@ allowlist_externals =
110
119
make
111
120
commands =
112
121
make regen
122
+ setenv =
123
+ # We don't want this warning to reach regen output.
124
+ PYTHONWARNDEFAULTENCODING =
113
125
114
126
[testenv:plugins]
115
127
# use latest versions of all plugins, including pre-releases
You can’t perform that action at this time.
0 commit comments