fix formatting

This commit is contained in:
Robert Kaussow 2023-02-12 13:15:34 +01:00
parent 5efe1c405a
commit 3806f16c22
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 4 additions and 6 deletions

View File

@ -26,9 +26,7 @@ class Autotag:
parser = argparse.ArgumentParser(
description=("Creates a list of docker tags from a given version string.")
)
parser.add_argument(
"--version", action="version", version=f"%(prog)s {__version__}"
)
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
return parser.parse_args()
@ -91,9 +89,9 @@ class Autotag:
except ValueError:
try:
version = semantic_version.Version.coerce(ref)
except Exception: # noqa: BLE001
except Exception: # noqa: BLE001
return default
except Exception: # noqa: BLE001
except Exception: # noqa: BLE001
return default
if version.prerelease:
@ -128,6 +126,5 @@ class Autotag:
self.logger.error(f"Unable to write file: {str(e)}")
def main():
Autotag()

View File

@ -10,6 +10,7 @@ def normalize_path(path):
return None
def to_bool(string):
return bool(strtobool(str(string)))