kopia lustrzana https://github.com/jupyterhub/repo2docker
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.cipull/1329/head
rodzic
fa8394b09b
commit
089e919e19
|
@ -119,7 +119,7 @@ def run_command(
|
||||||
return None, None
|
return None, None
|
||||||
else:
|
else:
|
||||||
if verbose:
|
if verbose:
|
||||||
print("unable to find command, tried {}".format(commands))
|
print(f"unable to find command, tried {commands}")
|
||||||
return None, None
|
return None, None
|
||||||
stdout = process.communicate()[0].strip().decode()
|
stdout = process.communicate()[0].strip().decode()
|
||||||
if process.returncode != 0:
|
if process.returncode != 0:
|
||||||
|
@ -381,7 +381,7 @@ def git_pieces_from_vcs(
|
||||||
if verbose:
|
if verbose:
|
||||||
fmt = "tag '%s' doesn't start with prefix '%s'"
|
fmt = "tag '%s' doesn't start with prefix '%s'"
|
||||||
print(fmt % (full_tag, tag_prefix))
|
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,
|
full_tag,
|
||||||
tag_prefix,
|
tag_prefix,
|
||||||
)
|
)
|
||||||
|
|
|
@ -502,7 +502,7 @@ def run_command(
|
||||||
return None, None
|
return None, None
|
||||||
else:
|
else:
|
||||||
if verbose:
|
if verbose:
|
||||||
print("unable to find command, tried {}".format(commands))
|
print(f"unable to find command, tried {commands}")
|
||||||
return None, None
|
return None, None
|
||||||
stdout = process.communicate()[0].strip().decode()
|
stdout = process.communicate()[0].strip().decode()
|
||||||
if process.returncode != 0:
|
if process.returncode != 0:
|
||||||
|
@ -1418,7 +1418,7 @@ def git_pieces_from_vcs(
|
||||||
if verbose:
|
if verbose:
|
||||||
fmt = "tag '%s' doesn't start with prefix '%s'"
|
fmt = "tag '%s' doesn't start with prefix '%s'"
|
||||||
print(fmt % (full_tag, tag_prefix))
|
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,
|
full_tag,
|
||||||
tag_prefix,
|
tag_prefix,
|
||||||
)
|
)
|
||||||
|
@ -1867,7 +1867,7 @@ def get_versions(verbose: bool = False) -> Dict[str, Any]:
|
||||||
try:
|
try:
|
||||||
ver = versions_from_file(versionfile_abs)
|
ver = versions_from_file(versionfile_abs)
|
||||||
if verbose:
|
if verbose:
|
||||||
print("got version from file {} {}".format(versionfile_abs, ver))
|
print(f"got version from file {versionfile_abs} {ver}")
|
||||||
return ver
|
return ver
|
||||||
except NotThisMethod:
|
except NotThisMethod:
|
||||||
pass
|
pass
|
||||||
|
|
Ładowanie…
Reference in New Issue