Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UTF-8 as default encoding in unspecified-encoding fix #12370

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jul 17, 2024

Summary

This is the intended default that PEP 597 wants, but it's not backwards compatible. The fix is already unsafe, so it's better for us to recommend the desired and expected behavior.

Closes #12069.

@charliermarsh charliermarsh changed the title Use UTF-8 as default encoding in unspecified-encoding fix Use UTF-8 as default encoding in unspecified-encoding fix Jul 17, 2024
@charliermarsh charliermarsh added rule Implementing or modifying a lint rule fixes Related to suggested fixes for violations labels Jul 17, 2024
@charliermarsh charliermarsh merged commit e39298d into main Jul 17, 2024
20 checks passed
@charliermarsh charliermarsh deleted the charlie/utf-8 branch July 17, 2024 16:57
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PLW1514: extend or change autofix with encoding="utf-8"
1 participant