mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 02:24:04 +00:00
Fix style
This commit is contained in:
@@ -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"
|
||||||
|
@@ -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())
|
||||||
|
Reference in New Issue
Block a user