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
Refactor/fstrings #1035
Refactor/fstrings #1035
Conversation
@@ -157,7 +157,7 @@ def get_dataset_credentials( | |||
Returns: | |||
tuple: containing full url to dataset, credentials, mode and expiration time respectively. | |||
""" | |||
relative_url = GET_DATASET_CREDENTIALS_SUFFIX % (org_id, ds_name) | |||
relative_url = GET_DATASET_CREDENTIALS_SUFFIX.format(org_id, ds_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't convert this to a fstring as it's a variable, so just decided to go with .format
instead. Hope that's fine!
Codecov Report
@@ Coverage Diff @@
## main #1035 +/- ##
=======================================
Coverage 88.42% 88.42%
=======================================
Files 85 85
Lines 3897 3897
=======================================
Hits 3446 3446
Misses 451 451
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This PR replaces all instances of strings with
%s
and.format
with fstrings.