From 6aefda385ccf28eb229991eca2fa367ce1635e04 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 1 Aug 2022 19:56:26 +0200 Subject: [PATCH] Fix pylint/flake8 errors of last commit --- gitdch | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/gitdch b/gitdch index eb55f18..b893c8b 100755 --- a/gitdch +++ b/gitdch @@ -131,7 +131,7 @@ parser.add_argument( '--release-notes', type=str, dest='release_notes', - help='Specify the Markdown release notes output path (default: not generated)', + help='Specify an optional Markdown release notes output path' ) @@ -269,12 +269,14 @@ else: print(''.join(changelog_lines)) if options.release_notes: - log.info('Generate Markdown release notes') - release_notes_lines = [f'# Changelog:\n\n'] - release_notes_lines.extend([ - f'* {message}\n' - for message in versions[0]['messages'] - ]) - log.info('Write generated Markdown release notes in file %s', options.release_notes) - with open(options.release_notes, 'w', encoding='utf8') as fd: + log.info('Generate Markdown release notes') + release_notes_lines = ['# Changelog:\n\n'] + release_notes_lines.extend([ + f'* {message}\n' + for message in versions[0]['messages'] + ]) + log.info( + 'Write generated Markdown release notes in file %s', + options.release_notes) + with open(options.release_notes, 'w', encoding='utf8') as fd: fd.writelines(release_notes_lines)