-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[refurb
] Implement fstring-number-format
(FURB116
)
#10921
Conversation
Not too sure how I'd reliably be able to support expressions that can include strings, such as calls, like in my |
|
let Expr::Name(ast::ExprName { id, .. }) = func.as_ref() else { | ||
return; | ||
}; | ||
|
||
if !checker.semantic().is_builtin(id) { | ||
return; | ||
} |
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.
If #10919 is merged before this, I'll update accordingly.
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.
it was merged ;)
dbf8213
to
b623a80
Compare
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.
Thanks!
refurb
] - add fstring-number-format
with sometimes-autofix (FURB116
)refurb
] Implement fstring-number-format
(FURB116
)
Summary
Adds
FURB116
See #1348
Test Plan
cargo test