Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 28, 2024
1 parent fa8394b commit 089e919
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions repo2docker/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def run_command(
return None, None
else:
if verbose:
print("unable to find command, tried {}".format(commands))
print(f"unable to find command, tried {commands}")
return None, None
stdout = process.communicate()[0].strip().decode()
if process.returncode != 0:
Expand Down Expand Up @@ -381,7 +381,7 @@ def git_pieces_from_vcs(
if verbose:
fmt = "tag '%s' doesn't start with prefix '%s'"
print(fmt % (full_tag, tag_prefix))
pieces["error"] = "tag '%s' doesn't start with prefix '%s'" % (
pieces["error"] = "tag '{}' doesn't start with prefix '{}'".format(
full_tag,
tag_prefix,
)
Expand Down
6 changes: 3 additions & 3 deletions versioneer.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def run_command(
return None, None
else:
if verbose:
print("unable to find command, tried {}".format(commands))
print(f"unable to find command, tried {commands}")
return None, None
stdout = process.communicate()[0].strip().decode()
if process.returncode != 0:
Expand Down Expand Up @@ -1418,7 +1418,7 @@ def git_pieces_from_vcs(
if verbose:
fmt = "tag '%s' doesn't start with prefix '%s'"
print(fmt % (full_tag, tag_prefix))
pieces["error"] = "tag '%s' doesn't start with prefix '%s'" % (
pieces["error"] = "tag '{}' doesn't start with prefix '{}'".format(
full_tag,
tag_prefix,
)
Expand Down Expand Up @@ -1867,7 +1867,7 @@ def get_versions(verbose: bool = False) -> Dict[str, Any]:
try:
ver = versions_from_file(versionfile_abs)
if verbose:
print("got version from file {} {}".format(versionfile_abs, ver))
print(f"got version from file {versionfile_abs} {ver}")
return ver
except NotThisMethod:
pass
Expand Down

0 comments on commit 089e919

Please sign in to comment.