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

@@ -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())