-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement flynt's "join and concat to f-string" transforms #2102
Comments
Let's put these in Separately, have you been using Separately, do you have an opinion on whether |
I have UP031 and UP032 enabled by way of Maybe (and this is tangential to the #2142 RUF005 discussion) UP03[12] should have a "suggestion" flag for |
Idk if But for 3 items, especially when a variable is inserted between two strings*, is definitely something I've been looking for. * I think it's safe to expect people shouldn't be writing code where I'm also for keeping these different rules. Makes adoption easier, especially when gradually linting or if a rule's style change is undesired. |
flynt
is a specialized linter for f-string usage.UP031 and UP032 implement
flynt
's core features, but the two extra transformsi.e.
and
respectively could be implemented in Ruff too. (I'd like to work on them! 😄) Should these be
FLY
series, or should they beRUF
?FLY001
: consider replacing string concatenation with f-stringFLY002
: consider replacing static string joining with f-string (Implement Flynt static string join transform as FLY002 #4196)Refs #2097 (relating to f-strings)
The text was updated successfully, but these errors were encountered: