@@ -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
2327if __name__ == "__main__" :
0 commit comments