Skip to content

Commit 50adef2

Browse files
authored
Merge pull request #326 from y0z/feature/update-ci
Update CI
2 parents a2d3915 + b6e4090 commit 50adef2

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

optunahub-registry/header_confirm.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ def header_confirm(path: str) -> None:
1212
assert "tags" in post.keys(), f"tags is not found in {path}"
1313
assert "optuna_versions" in post.keys(), f"optuna_versions is not found in {path}"
1414
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}"
15+
assert post["author"] != "" and post["author"] is not None, f"author is empty in {path}"
16+
assert post["title"] != "" and post["title"] is not None, f"title is empty in {path}"
17+
assert (
18+
post["description"] != "" and post["description"] is not None
19+
), f"description is empty in {path}"
20+
assert post["tags"] != "" and post["tags"] is not None, f"tags is empty in {path}"
21+
assert (
22+
post["optuna_versions"] != "" and post["optuna_versions"] is not None
23+
), f"optuna_versions is empty in {path}"
24+
assert post["license"] != "" and post["license"] is not None, f"license is empty in {path}"
2125

2226

2327
if __name__ == "__main__":

0 commit comments

Comments
 (0)