Commit 25f2db33 authored by Simon Chabot's avatar Simon Chabot
Browse files

style: updated black version

parent 4e683be04122
......@@ -129,7 +129,10 @@ class Changelog:
return Change.from_commit(commit)
def render(self):
return CHANGE_LOG_TEMPLATE.render(changelog=self, ChangeType=ChangeType,)
return CHANGE_LOG_TEMPLATE.render(
changelog=self,
ChangeType=ChangeType,
)
@command(
......@@ -157,10 +160,7 @@ def autochangelog(ui, repo, **opts):
tags = [t for t in commit.tags() if t != b"tip"]
if tags:
version = Version(
tags[0].decode("utf-8"),
datetime.fromtimestamp(commit.date()[0])
)
version = Version(tags[0].decode("utf-8"), datetime.fromtimestamp(commit.date()[0]))
changelog.add_commit(commit, version)
print(changelog.render())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment