Skip to content
Merged
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
16 changes: 10 additions & 6 deletions optunahub-registry/header_confirm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ def header_confirm(path: str) -> None:
assert "tags" in post.keys(), f"tags is not found in {path}"
assert "optuna_versions" in post.keys(), f"optuna_versions is not found in {path}"
assert "license" in post.keys(), f"license is not found in {path}"
assert post["author"] != "", f"author is empty in {path}"
assert post["title"] != "", f"title is empty in {path}"
assert post["description"] != "", f"description is empty in {path}"
assert post["tags"] != "", f"tags is empty in {path}"
assert post["optuna_versions"] != "", f"optuna_versions is empty in {path}"
assert post["license"] != "", f"license is empty in {path}"
assert post["author"] != "" and post["author"] is not None, f"author is empty in {path}"
assert post["title"] != "" and post["title"] is not None, f"title is empty in {path}"
assert (
post["description"] != "" and post["description"] is not None
), f"description is empty in {path}"
assert post["tags"] != "" and post["tags"] is not None, f"tags is empty in {path}"
assert (
post["optuna_versions"] != "" and post["optuna_versions"] is not None
), f"optuna_versions is empty in {path}"
assert post["license"] != "" and post["license"] is not None, f"license is empty in {path}"


if __name__ == "__main__":
Expand Down