Skip to content

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

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/utf-8
Jul 17, 2024
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/utf-8

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Jul 17, 2024 •

Copy link
Copy Markdown
Member

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
@charliermarsh
charliermarsh deleted the charlie/utf-8 branch July 17, 2024 16:57
@github-actions

Copy link
Copy Markdown
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