mirror of
https://github.com/thegeeklab/docker-autotag.git
synced 2024-06-02 07:49:39 +02:00
fix formatting
This commit is contained in:
parent
5efe1c405a
commit
3806f16c22
|
@ -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()
|
||||
|
|
|
@ -10,6 +10,7 @@ def normalize_path(path):
|
|||
|
||||
return None
|
||||
|
||||
|
||||
def to_bool(string):
|
||||
return bool(strtobool(str(string)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user