Fix some flake8 warnings

This commit is contained in:
Benjamin Renard 2022-04-17 00:01:18 +02:00
parent 4d36fa0c0e
commit a109b47ba7

11
gitdch
View file

@ -79,7 +79,9 @@ parser.add_argument(
'--version', '--version',
type=str, type=str,
dest='version', dest='version',
help='Currrent version (default: autodetected using git describe --always --tags)' help=(
'Currrent version (default: autodetected using git describe '
'--always --tags)')
) )
parser.add_argument( parser.add_argument(
@ -176,7 +178,12 @@ def add_version():
tag = None tag = None
version_commit = None version_commit = None
version = options.version or clean_deb_version(repo.git.describe('--always', '--tags')) version = (
options.version or
clean_deb_version(
repo.git.describe('--always', '--tags')
)
)
messages = [] messages = []
for commit in repo.iter_commits(): for commit in repo.iter_commits():
if version_commit is None: if version_commit is None: