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

Update "move_repo" doc url + fix Bigcode test in CI #1292

Merged
merged 3 commits into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ def move_repo(

Note there are certain limitations. For more information about moving
repositories, please see
https://hf.co/docs/hub/main#how-can-i-rename-or-transfer-a-repo.
https://hf.co/docs/hub/repositories-settings#renaming-or-transferring-a-repo.

Args:
from_id (`str`):
Expand Down Expand Up @@ -2142,7 +2142,7 @@ def move_repo(
except HfHubHTTPError as e:
e.append_to_message(
"\nFor additional documentation please see"
" https://hf.co/docs/hub/main#how-can-i-rename-or-transfer-a-repo."
" https://hf.co/docs/hub/repositories-settings#renaming-or-transferring-a-repo."
)
raise

Expand Down
4 changes: 2 additions & 2 deletions tests/test_hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2478,7 +2478,7 @@ def test_list_refs_gpt2(self) -> None:
self.api.repo_info("gpt2", revision=main_branch.target_commit)

def test_list_refs_bigcode(self) -> None:
refs = self.api.list_repo_refs("bigcode/evaluation", repo_type="dataset")
refs = self.api.list_repo_refs("bigcode/admin", repo_type="dataset")
self.assertGreater(len(refs.branches), 0)
self.assertGreater(len(refs.converts), 0)
main_branch = [branch for branch in refs.branches if branch.name == "main"][0]
Expand All @@ -2491,7 +2491,7 @@ def test_list_refs_bigcode(self) -> None:

# Can get info by convert revision
self.api.repo_info(
"bigcode/evaluation",
"bigcode/admin",
repo_type="dataset",
revision=convert_branch.target_commit,
)
Expand Down