Closed jaraco closed 2 months ago
Thanks. Good call.
I think that trial
is missing a helper to catch generic warnings... but maybe we can have a quick hack and run our CI with the warnings enabled and just fail somehow is a warning is raised.
But event a PR with just the explicit encoding, and without any extra warning detection, is good enough.
Happy to review a PR.
While building using towncrier with PYTHONWARNDEFAULTENCODING=1, I see this warning:
One needs to explicitly pass
encoding='utf-8'
to.read_text()
to avoid these warnings. See PEP 597 for details.