ruff
ruff copied to clipboard
[redknot] unspecified-encoding lint rule
Implement an unspecified_encoding.py lint rule like the one in #11288.
import tempfile
tempfile.TemporaryFile("w") # error
tempfile.TemporaryFile("w", encoding="utf-8") # ok
This is still a draft.
ruff-ecosystem results
Linter (stable)
✅ ecosystem check detected no linter changes.
Linter (preview)
✅ ecosystem check detected no linter changes.