Skip to content

Commit

Permalink
dev(narugo): complete this part
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Nov 27, 2024
1 parent 32b8e65 commit 337acac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hfutils/operate/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def upload_directory_as_archive(local_directory, repo_id: str, archive_in_repo:
else:
id_pattern = f'{{x:0{max(len(str(len(file_groups))), 5)}d}}'
raw_dst_archive_file = os.path.normpath(os.path.join(td, archive_in_repo))
for gid, group in enumerate(file_groups, start=1):
for gid, group in enumerate(tqdm(file_groups, silent=silent,

Check warning on line 138 in hfutils/operate/upload.py

View check run for this annotation

Codecov / codecov/patch

hfutils/operate/upload.py#L136-L138

Added lines #L136 - L138 were not covered by tests
desc=f'Making {plural_word(len(file_groups), "package")}'), start=1):
group: FilesGroup
dst_archive_file_body, dst_archive_file_ext = archive_splitext(raw_dst_archive_file)
dst_archive_file = (f'{dst_archive_file_body}'

Check warning on line 142 in hfutils/operate/upload.py

View check run for this annotation

Codecov / codecov/patch

hfutils/operate/upload.py#L141-L142

Added lines #L141 - L142 were not covered by tests
Expand Down

0 comments on commit 337acac

Please sign in to comment.