-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
STY: Enable ruff ambiguous unicode character #54330
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - never even thought about these sneaking in here when reviewing a PR.
@@ -957,7 +957,7 @@ def test_to_csv_path_is_none(self, float_frame): | |||
(DataFrame([["abc", "def", "ghi"]], columns=["X", "Y", "Z"]), "ascii"), | |||
(DataFrame(5 * [[123, "你好", "世界"]], columns=["X", "Y", "Z"]), "gb2312"), | |||
( | |||
DataFrame(5 * [[123, "Γειά σου", "Κόσμε"]], columns=["X", "Y", "Z"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noqa here instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Fixed
@@ -122,7 +122,7 @@ def test_to_csv_path_is_none(self): | |||
# GH 21241, 21118 | |||
(Series(["abc", "def", "ghi"], name="X"), "ascii"), | |||
(Series(["123", "你好", "世界"], name="中文"), "gb2312"), | |||
(Series(["123", "Γειά σου", "Κόσμε"], name="Ελληνικά"), "cp737"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good call. Fixed
pandas/tests/strings/test_strings.py
Outdated
# 0xFF13: 3 Em 3 # noqa: RUF003 | ||
ser = Series(["A", "3", "¼", "★", "፸", "3", "four"], dtype=any_string_dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the comment above is indicating this one shouldn't be changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same remark for the rest of the changes in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Added noqas here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks @mroeschke |
No description provided.