Please try PYTHONWARNDEFAULTENCODING (PEP 597)

In Pylint v2.10 we have added a new check for it unspecified-encoding (W1514) which is enabled by default. It might not cover all cases, but should help with the transition.

1 Like