Closed inkydragon closed 2 years ago
-W
是 turn warnings into errors
。
Error: env.note_versionchange('deprecated', version[0], node, self.lineno)
looking for now-outdated files...
Error: /home/runner/work/python-docs-zh-cn/python-docs-zh-cn/cpython/Doc/c-api/long.rst:212:<translated>:1: WARNING: Unknown interpreted text role "ex".
Error: /home/runner/work/python-docs-zh-cn/python-docs-zh-cn/cpython/Doc/c-api/long.rst:212:<translated>:1: WARNING: Unknown interpreted text role "ex".
Error: /home/runner/work/python-docs-zh-cn/python-docs-zh-cn/cpython/Doc/c-api/long.rst:212: WARNING: inconsistent term references in translated message. original: [':exc:`OverflowError`', ':c:type:`unsigned long`'], translated: [':c:type:`unsigned long`']
这些都是翻译有问题的。
https://github.com/python/python-docs-zh-cn/wiki/CommonProblems
python-310
https://github.com/python/python-docs-zh-cn/runs/6955324192?check_suite_focus=true#step:5:611
python-37
https://github.com/python/python-docs-zh-cn/runs/6955258536?check_suite_focus=true#step:5:562
不小心开了 Warning as error ?