mirror of https://github.com/docker/docker-py.git
fix lint error Signed-off-by: Daniel Lombardi <lombardi.daniel.o@gmail.com>
Signed-off-by: Daniel Lombardi <lombardi.daniel.o@gmail.com>
This commit is contained in:
parent
25e588b382
commit
b8670edcf8
|
|
@ -131,14 +131,14 @@ class BuildApiMixin:
|
||||||
)
|
)
|
||||||
if tag is not None:
|
if tag is not None:
|
||||||
if not utils.match_tag(tag):
|
if not utils.match_tag(tag):
|
||||||
raise errors.DockerException(f"invalid tag '{tag}': invalid reference format")
|
raise errors.DockerException(
|
||||||
|
f"invalid tag '{tag}': invalid reference format"
|
||||||
|
)
|
||||||
for key in container_limits.keys():
|
for key in container_limits.keys():
|
||||||
if key not in constants.CONTAINER_LIMITS_KEYS:
|
if key not in constants.CONTAINER_LIMITS_KEYS:
|
||||||
raise errors.DockerException(
|
raise errors.DockerException(
|
||||||
f'Invalid container_limits key {key}'
|
f"invalid tag '{tag}': invalid reference format"
|
||||||
)
|
)
|
||||||
|
|
||||||
if custom_context:
|
if custom_context:
|
||||||
if not fileobj:
|
if not fileobj:
|
||||||
raise TypeError("You must specify fileobj with custom_context")
|
raise TypeError("You must specify fileobj with custom_context")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue