Skip to content

Commit 0c3759b

Browse files
authored
Merge pull request #315 from y0z/feature/update-ci
Update CI
2 parents e37c461 + 76d1266 commit 0c3759b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

optunahub-registry/header_confirm.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@
55

66
def header_confirm(path: str) -> None:
77
post = frontmatter.load(path)
8+
89
assert "author" in post.keys(), f"author is not found in {path}"
910
assert "title" in post.keys(), f"title is not found in {path}"
1011
assert "description" in post.keys(), f"description is not found in {path}"
1112
assert "tags" in post.keys(), f"tags is not found in {path}"
1213
assert "optuna_versions" in post.keys(), f"optuna_versions is not found in {path}"
1314
assert "license" in post.keys(), f"license is not found in {path}"
15+
assert post["author"] != "", f"author is empty in {path}"
16+
assert post["title"] != "", f"title is empty in {path}"
17+
assert post["description"] != "", f"description is empty in {path}"
18+
assert post["tags"] != "", f"tags is empty in {path}"
19+
assert post["optuna_versions"] != "", f"optuna_versions is empty in {path}"
20+
assert post["license"] != "", f"license is empty in {path}"
1421

1522

1623
if __name__ == "__main__":

0 commit comments

Comments
 (0)