setuptools
setuptools copied to clipboard
[debt] Many ResourceWarnings when `PYTHONWARNDEFAULTENCODING = 1`
In jaraco/skeleton, I've rolled out PYTHONWARNDEFAULTENCODING=1. Merging that change into Setuptools causes the test suite to fail due to pytest.ini:filterwarnings[error].
I figured this would be already known (it makes tests much harder to read) and I see there's a WIP branch for it.
The rule is still in "preview", but this can be checked for setuptool's own code using https://docs.astral.sh/ruff/rules/unspecified-encoding/