mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
removed progress bar that was instant
This commit is contained in:
@ -95,7 +95,7 @@ class Dataset:
|
|||||||
print("Done")
|
print("Done")
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for entry_data in tqdm(data["entries"], desc="Loading entries"):
|
for entry_data in data["entries"]:
|
||||||
metadata_data = entry_data["metadata"]
|
metadata_data = entry_data["metadata"]
|
||||||
metadata = Metadata(**metadata_data)
|
metadata = Metadata(**metadata_data)
|
||||||
if (
|
if (
|
||||||
@ -156,6 +156,8 @@ def try_read_file(fname: str) -> str:
|
|||||||
return f.read()
|
return f.read()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return "Binary file (from filesystem), to be ignored"
|
return "Binary file (from filesystem), to be ignored"
|
||||||
|
except IsADirectoryError:
|
||||||
|
return "File listed in PR is a directory (likely a submodule), to be ignored"
|
||||||
|
|
||||||
def new_files(repo: Repository, pr: PullRequest, new_metadata: Metadata_new, old_entry: DatasetEntry, repo_path: str) -> dict[str, FileData_new]:
|
def new_files(repo: Repository, pr: PullRequest, new_metadata: Metadata_new, old_entry: DatasetEntry, repo_path: str) -> dict[str, FileData_new]:
|
||||||
review_comments = list(pr.get_review_comments())
|
review_comments = list(pr.get_review_comments())
|
||||||
|
Reference in New Issue
Block a user