Pin text I/O to UTF-8 and fail CI on locale-dependent reads/writes (#3296)
Co-authored-by: ShuQingDollarVoyager <57471784+ShuQingDollarVoyager@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
52ad0a8876
commit
5285e936a9
1 changed files with 76 additions and 57 deletions
|
|
@ -279,6 +279,9 @@ filterwarnings = [
|
|||
# 2026-07-28 drops ping; Client.send_ping() is advisory-deprecated and the
|
||||
# legacy interaction/transport tests still drive it.
|
||||
"ignore:ping is removed as of 2026-07-28.*:mcp.MCPDeprecationWarning",
|
||||
# CI and scripts/test set PYTHONWARNDEFAULTENCODING=1, so "error" rejects any text I/O
|
||||
# of ours that omits encoding=; pytest-examples' own unguarded text I/O isn't ours.
|
||||
"ignore:'encoding' argument not specified:EncodingWarning:pytest_examples",
|
||||
]
|
||||
|
||||
[tool.markdown.lint]
|
||||
|
|
|
|||
Loading…
Reference in a new issue