nteract / papermill

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

Use f-strings where possible #762

Closed akx closed 9 months ago

akx commented 9 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.