tox: turn off PYTHONWARNDEFAULTENCODING for pre-commit, sphinx etc.
Fix #11157.
This commit is contained in:
parent
b5bc53e441
commit
119cec0279
12
tox.ini
12
tox.ini
|
@ -74,6 +74,9 @@ skip_install = True
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = pre-commit>=2.9.3
|
deps = pre-commit>=2.9.3
|
||||||
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
|
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
|
||||||
|
setenv =
|
||||||
|
# pre-commit and tools it launches are not clean of this warning.
|
||||||
|
PYTHONWARNDEFAULTENCODING=
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
@ -88,6 +91,9 @@ commands =
|
||||||
# changelog in the docs; this does not happen on ReadTheDocs because it uses
|
# changelog in the docs; this does not happen on ReadTheDocs because it uses
|
||||||
# the standard sphinx command so the 'changelog_towncrier_draft' is never set there
|
# the standard sphinx command so the 'changelog_towncrier_draft' is never set there
|
||||||
sphinx-build -W --keep-going -b html doc/en doc/en/_build/html -t changelog_towncrier_draft {posargs:}
|
sphinx-build -W --keep-going -b html doc/en doc/en/_build/html -t changelog_towncrier_draft {posargs:}
|
||||||
|
setenv =
|
||||||
|
# Sphinx is not clean of this warning.
|
||||||
|
PYTHONWARNDEFAULTENCODING=
|
||||||
|
|
||||||
[testenv:docs-checklinks]
|
[testenv:docs-checklinks]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
@ -96,6 +102,9 @@ changedir = doc/en
|
||||||
deps = -r{toxinidir}/doc/en/requirements.txt
|
deps = -r{toxinidir}/doc/en/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -W -q --keep-going -b linkcheck . _build
|
sphinx-build -W -q --keep-going -b linkcheck . _build
|
||||||
|
setenv =
|
||||||
|
# Sphinx is not clean of this warning.
|
||||||
|
PYTHONWARNDEFAULTENCODING=
|
||||||
|
|
||||||
[testenv:regen]
|
[testenv:regen]
|
||||||
changedir = doc/en
|
changedir = doc/en
|
||||||
|
@ -110,6 +119,9 @@ allowlist_externals =
|
||||||
make
|
make
|
||||||
commands =
|
commands =
|
||||||
make regen
|
make regen
|
||||||
|
setenv =
|
||||||
|
# We don't want this warning to reach regen output.
|
||||||
|
PYTHONWARNDEFAULTENCODING=
|
||||||
|
|
||||||
[testenv:plugins]
|
[testenv:plugins]
|
||||||
# use latest versions of all plugins, including pre-releases
|
# use latest versions of all plugins, including pre-releases
|
||||||
|
|
Loading…
Reference in New Issue