From 6c770d86e5e9ee2e4c8c1ec2c618b1572d97d0a7 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sun, 25 Apr 2021 00:36:07 +0300 Subject: [PATCH] Fix style --- tagging/create_manifests.py | 2 +- tagging/git_helper.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tagging/create_manifests.py b/tagging/create_manifests.py index af429b3d..2b988f1c 100755 --- a/tagging/create_manifests.py +++ b/tagging/create_manifests.py @@ -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]) + "|" - 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: file = f.read() TABLE_BEGINNING = "|-|-|-|\n" diff --git a/tagging/git_helper.py b/tagging/git_helper.py index f0ea0f8a..cb453703 100755 --- a/tagging/git_helper.py +++ b/tagging/git_helper.py @@ -7,13 +7,13 @@ from plumbum.cmd import git class GitHelper: @staticmethod def commit_hash(): - return git['rev-parse', 'HEAD']().strip() + return git["rev-parse", "HEAD"]().strip() @staticmethod def commit_message(): return git["log", -1, "--pretty=%B"]().strip() -if __name__ == '__main__': - print('Git hash:', GitHelper.commit_hash()) - print('Git message:', GitHelper.commit_message()) +if __name__ == "__main__": + print("Git hash:", GitHelper.commit_hash()) + print("Git message:", GitHelper.commit_message())