-
Notifications
You must be signed in to change notification settings - Fork 80
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
replace notify
format usage with f-strings instead
#1409
Comments
Hi @ctb, I have read your issue and I came to the conclusion that you want to enhance the project by replacing the string.formats with the f strings. I think I can work on this project and help you by enhancing the code base as per your wish. Please assign these issue to me and also give me your mail-id so that I can contact you in case I need help. Best, |
hi @itsabhianant just ask for help here on this issue, or in a newly opened pull request! please start small, with just one change to one place. note that resources for new sourmash developers |
Ok, can you tell me which specific directories do you want the changes to be made to? Also, can you assign this issue to me? |
notify
with f-stringsnotify
format usage with f-strings instead
hi @itsabhianant I created #1418 for you as a specific issue. I can't assign it to you without making you part of this organization, which I'm not ready to do yet, but you are welcome to claim it. please mention both that issue and this issue in the pull request you create. thanks! |
@ctb I'd like to work on this issue. |
throughout the Python code base, it would be nice to replace calls like,
(which uses string.format underneath)
with f-strings, e.g.
One motivation for this is that error messages with f-strings that contain strings or filenames with
{}
in them break the currentnotify
function. The other is that f-strings are really nice and simple!Questions/thoughts -
notify
function so that if it passed any arguments, it barfs with anassert 0
.notify_verbatim
or something, or just work to replace notify with something that no longer usesstring.format
?examples
see #1406 for an example of doing this in
sourmash_args.py
.also see #1342 for a different set of changes to
notify
.more info
see https://realpython.com/python-f-strings/ for more on f-strings.
The text was updated successfully, but these errors were encountered: