-
Notifications
You must be signed in to change notification settings - Fork 505
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
Use f-strings #419
base: main
Are you sure you want to change the base?
Use f-strings #419
Conversation
After voila-dashboards#403 is merged, there will be no reason to use the old string styling from Python2, and since f-strings are available since Python 3.6 it could be adopted as the default style.
Thanks @cmaureir. This looks good to me. We may be stuck with Python 3.5 for a few more months (december). |
Np @SylvainCorlay I can do the refactoring once 3.5 is out of the picture |
Thanks @cmaureir for taking the time to do this. I'm also waiting for the day when we can drop everything below 3.5 :) |
Happy to merge this in the future with the f-strings on lines that do not use the logger. However, using |
#403 has been merged, and Python 3.5 shouldn't be a requirement anymore. So we should now be able to switch to using f-strings (omitting the changes to the logger) 👍 |
not sure if I touched something related to the logger while solving all the conflicts, but let me know in case I did it 👯 |
Co-authored-by: Jeremy Tuloup <[email protected]>
thanks @jtpio, let's see now. |
Co-authored-by: Jeremy Tuloup <[email protected]>
Co-authored-by: Jeremy Tuloup <[email protected]>
@trungleduc mind providing more context for closing this PR? Probably because this was handled in a separate PR, for example after switching to |
Thanks @jtpio for the double-check! I closed the old PRs thinking it was not worth the rebasing effort. Actually, the conflicts in this PR are quite easy to fix, reopening it. |
OK nice thanks for checking @trungleduc 👍 Yeah I remember this PR was created during the Voila Sprint at some previous PyData Berlin conference. Maybe we can help Cristián wrap it up so it can be merged :) |
for more information, see https://pre-commit.ci
oh, super old PR sorry for not reacting before 😆 I tried to solve all the merge conflicts, but I'm certain some styling checks might fail. Let's see what the CI needs to tell us 👯 |
Thanks @cmaureir! |
haha thanks @cmaureir for your patience! 🙏 |
I found new ones! Please notice that |
for more information, see https://pre-commit.ci
Note that this still applies. All lines calling the logger should be reverted if we do not want worse performance |
oh, that's unfortunate, will try to amend the change then |
I hope everything is in order now @maartenbreddels |
After #403 is merged, there will be no reason to use
the old string styling from Python2, and since
f-strings are available since Python 3.6 it could
be adopted as the default style.