-
Notifications
You must be signed in to change notification settings - Fork 71
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
ci: (ruff) Add rule UP034 #1442
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1442 +/- ##
=======================================
Coverage 90.02% 90.02%
=======================================
Files 214 214
Lines 26666 26666
Branches 3964 3964
=======================================
Hits 24007 24007
Misses 2026 2026
Partials 633 633
☔ View full report in Codecov by Sentry. |
@@ -2380,7 +2380,7 @@ def __init__( | |||
@classmethod | |||
def parse(cls, parser: Parser) -> AssemblySectionOp: | |||
directive = parser.parse_str_literal() | |||
attr_dict = parser.parse_optional_attr_dict_with_keyword(("directive")) | |||
attr_dict = parser.parse_optional_attr_dict_with_keyword(("directive",)) |
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.
Yay for python strings being iterables of string 😅
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 find
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.
👍
The rule is to avoid extraneous parentheses.
A bug was found when adding ruff rule UP034. The code intends to have a tuple of strings but a missing comma makes it becomes extraneous parentheses.