File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 55
66def 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
1623if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments