nteract / papermill

📚 Parameterize, execute, and analyze notebooks
http://papermill.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
5.99k stars 428 forks source link

Use f-strings where possible #762

Closed akx closed 11 months ago

akx commented 11 months ago

What does this PR do?

This PR cleans up various uses of % or .format or + string interpolation to use f-strings instead, for performance and readability.

Conversion was guided by https://github.com/ikamensh/flynt and hand-checked.