Skip to content

Commit 089e919

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fa8394b commit 089e919

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

repo2docker/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def run_command(
119119
return None, None
120120
else:
121121
if verbose:
122-
print("unable to find command, tried {}".format(commands))
122+
print(f"unable to find command, tried {commands}")
123123
return None, None
124124
stdout = process.communicate()[0].strip().decode()
125125
if process.returncode != 0:
@@ -381,7 +381,7 @@ def git_pieces_from_vcs(
381381
if verbose:
382382
fmt = "tag '%s' doesn't start with prefix '%s'"
383383
print(fmt % (full_tag, tag_prefix))
384-
pieces["error"] = "tag '%s' doesn't start with prefix '%s'" % (
384+
pieces["error"] = "tag '{}' doesn't start with prefix '{}'".format(
385385
full_tag,
386386
tag_prefix,
387387
)

versioneer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def run_command(
502502
return None, None
503503
else:
504504
if verbose:
505-
print("unable to find command, tried {}".format(commands))
505+
print(f"unable to find command, tried {commands}")
506506
return None, None
507507
stdout = process.communicate()[0].strip().decode()
508508
if process.returncode != 0:
@@ -1418,7 +1418,7 @@ def git_pieces_from_vcs(
14181418
if verbose:
14191419
fmt = "tag '%s' doesn't start with prefix '%s'"
14201420
print(fmt % (full_tag, tag_prefix))
1421-
pieces["error"] = "tag '%s' doesn't start with prefix '%s'" % (
1421+
pieces["error"] = "tag '{}' doesn't start with prefix '{}'".format(
14221422
full_tag,
14231423
tag_prefix,
14241424
)
@@ -1867,7 +1867,7 @@ def get_versions(verbose: bool = False) -> Dict[str, Any]:
18671867
try:
18681868
ver = versions_from_file(versionfile_abs)
18691869
if verbose:
1870-
print("got version from file {} {}".format(versionfile_abs, ver))
1870+
print(f"got version from file {versionfile_abs} {ver}")
18711871
return ver
18721872
except NotThisMethod:
18731873
pass

0 commit comments

Comments
 (0)