Skip to content
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

Merged
merged 2 commits into from Jul 12, 2021
Merged

Refactor/fstrings #1035

merged 2 commits into from Jul 12, 2021

Conversation

dhiganthrao
Copy link
Contributor

This PR replaces all instances of strings with %s and .format with fstrings.

@@ -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)
Copy link
Contributor Author

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!

@dhiganthrao dhiganthrao self-assigned this Jul 9, 2021
@codecov
Copy link

codecov bot commented Jul 9, 2021

Codecov Report

Merging #1035 (a01e327) into main (f2652f1) will not change coverage.
The diff coverage is 46.15%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1035   +/-   ##
=======================================
  Coverage   88.42%   88.42%           
=======================================
  Files          85       85           
  Lines        3897     3897           
=======================================
  Hits         3446     3446           
  Misses        451      451           
Impacted Files Coverage Δ
hub/core/meta/tensor_meta.py 88.11% <ø> (ø)
hub/tests/common.py 70.96% <0.00%> (ø)
hub/util/shape.py 90.47% <0.00%> (ø)
hub/util/subscript_namedtuple.py 83.33% <0.00%> (ø)
setup.py 0.00% <ø> (ø)
hub/util/exceptions.py 75.26% <50.00%> (ø)
conftest.py 91.19% <100.00%> (ø)
hub/client/client.py 93.33% <100.00%> (ø)
hub/client/config.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2652f1...a01e327. Read the comment docs.

Copy link
Contributor

@AbhinavTuli AbhinavTuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@farizrahman4u farizrahman4u merged commit 5812b52 into activeloopai:main Jul 12, 2021
@dhiganthrao dhiganthrao deleted the refactor/fstrings branch July 12, 2021 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants