Fold constants into f-string text

Proprietary

Inline constant values directly into f-string text. A number is only inlined where its source is its printed text, so {1_000} stays, and a string only where it holds no brace, quote, backslash or line break.

org.openrewrite.python.cleanup.SimplifyFstringFormatting
mod run . --recipe=org.openrewrite.python.cleanup.SimplifyFstringFormatting

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.