Skip to content

Commit

Permalink
extra/make-changelog: run through black
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 17, 2020
1 parent 9c33f68 commit c85e5b1
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions extra/make-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,27 @@

import git

repo = git.Repo('.')
repo = git.Repo(".")
changelog = defaultdict(list)

for id in repo.iter_commits('%s..HEAD' % sys.argv[1]):
for id in repo.iter_commits("%s..HEAD" % sys.argv[1]):
commit = repo.commit(id)
if not commit.summary.startswith("Merge pull request "):
changelog[commit.author.name].append(commit.summary)

print('bash-completion (X.Y)')
print('')
print("bash-completion (X.Y)")
print("")

for author in sorted(changelog.keys()):
print(' [ %s ]' % author)
print(" [ %s ]" % author)
for log in changelog[author]:
print('\n'.join(
wrap(log, initial_indent=' * ', subsequent_indent=' ')))
print('')
print(
"\n".join(
wrap(log, initial_indent=" * ", subsequent_indent=" ")
)
)
print("")

print(' -- Ville Skyttä <ville.skytta@iki.fi> %s' %
formatdate(localtime=True))
print(
" -- Ville Skyttä <ville.skytta@iki.fi> %s" % formatdate(localtime=True)
)

0 comments on commit c85e5b1

Please sign in to comment.