Fix style

This commit is contained in:
Ayaz Salikhov
2021-04-25 00:36:07 +03:00
parent 30e788a1cc
commit 6c770d86e5
2 changed files with 5 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ def append_build_history_line(short_image_name, owner, wiki_path, all_tags, cont
]) ])
build_history_line = "|".join([date_column, image_column, links_column]) + "|" build_history_line = "|".join([date_column, image_column, links_column]) + "|"
home_wiki_file = os.path.join(wiki_path, 'Home.md') home_wiki_file = os.path.join(wiki_path, "Home.md")
with open(home_wiki_file, "r") as f: with open(home_wiki_file, "r") as f:
file = f.read() file = f.read()
TABLE_BEGINNING = "|-|-|-|\n" TABLE_BEGINNING = "|-|-|-|\n"

View File

@@ -7,13 +7,13 @@ from plumbum.cmd import git
class GitHelper: class GitHelper:
@staticmethod @staticmethod
def commit_hash(): def commit_hash():
return git['rev-parse', 'HEAD']().strip() return git["rev-parse", "HEAD"]().strip()
@staticmethod @staticmethod
def commit_message(): def commit_message():
return git["log", -1, "--pretty=%B"]().strip() return git["log", -1, "--pretty=%B"]().strip()
if __name__ == '__main__': if __name__ == "__main__":
print('Git hash:', GitHelper.commit_hash()) print("Git hash:", GitHelper.commit_hash())
print('Git message:', GitHelper.commit_message()) print("Git message:", GitHelper.commit_message())