ikamensh / flynt

A tool to automatically convert old string literal formatting to f-strings
MIT License
685 stars 33 forks source link

Super aggressive mode ? #166

Open Nodd opened 1 year ago

Nodd commented 1 year ago

Hello, First of all thanks for the awesome tool! Would you consider adding a super aggressive mode ? I understand the potential problems about %d in #59. The workaround works fine, but in my codebase %d (or %i) is not used to convert the value, but just because the value to be stringified is an int. So in my case I have no need to add calls to int() and I'd like to simply have f"{my_int}" instead of f"{int(my_int)". This behavior could be added as a super aggressive mode -aa, or -ti for --transform-ints.