-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
.format()
in (legacy) code could be converted to f-strings.
#5474
Comments
Hello! May I work on this issue? |
I'd like to work on this |
For sure! @alex-jw-brooks could do it for the |
That sounds great, thanks! |
Sounds great. I'm on it |
Hey folks looking to contribute to a first issue on this repo can I look to work on this issue for other sub modules such as |
Hi @Larkinnjm1,
Sure, please go for it! |
Hello, i'd also like to contribute, can I work on this for the |
Hi @MariosAchilias,
Ok! |
Cool great on it! |
Just a recommendation: pyupgrade is a tool which can automatically apply new python-features on code, such as converting It might also do too many other conversions you don't want in the code-base, not sure about that, just a suggestion :-) |
".format()" of strings objects modified to f-strings within registration and restoration packages of library per issue scikit-image#5474. Committer: Niall Larkin <nialllarkin@nialls-mbp.home> On branch registration_restoration_fstrings Changes to be committed: modified: skimage/registration/_masked_phase_cross_correlation.py modified: skimage/registration/tests/test_masked_phase_cross_correlation.py modified: skimage/restoration/_denoise.py
Hi @jstriebel,
Exactly! But, it might be worth considering each pyupgrade item, to decide whether to include it or not. Thanks for the suggestion! |
This is part of the issue scikit-image#5474 The .format() has been replaced with f String wherever possible.
Hello @mkcor! I'm not super experienced, so I just wanted to check -- should this issue be closed? Running ./_shared/utils.py: warnings.warn(self.warning_msg.format( Thank you! |
Thanks for the reminder, @ovynnej. Indeed, we had several contributors in July/August and I think all of these have been addressed. |
Description
To address this issue, a new contributor could start with a recursive grep for
\.format\(
on a subpackage of interest to them (or on the entire package). Replacing instances of.format()
with f-strings can be a good pretext to explore the codebase.Reference: https://www.python.org/dev/peps/pep-0498/
The text was updated successfully, but these errors were encountered: