mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-23 17:09:23 +02:00
modifications to pass pylint test
Signed-off-by: Mohammad Kazemi <mokazemi@disroot.org>
This commit is contained in:
parent
b748c2666c
commit
f106ea0c01
@ -1,7 +1,7 @@
|
|||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
# C0111 missing-docstring: missing-class-docstring, missing-function-docstring, missing-method-docstring, missing-module-docstrin
|
# C0111 missing-docstring: missing-class-docstring, missing-function-docstring, missing-method-docstring, missing-module-docstrin
|
||||||
# consider-using-with: we need it for color formatter pipe
|
# consider-using-with: we need it for color formatter pipe
|
||||||
disable=too-many-lines,too-many-branches,too-many-locals,too-many-statements,too-many-arguments,too-many-instance-attributes,fixme,multiple-statements,missing-docstring,line-too-long,consider-using-f-string,consider-using-with,unnecessary-lambda-assignment
|
disable=too-many-lines,too-many-branches,too-many-locals,too-many-statements,too-many-arguments,too-many-instance-attributes,fixme,multiple-statements,missing-docstring,line-too-long,consider-using-f-string,consider-using-with,unnecessary-lambda-assignment,broad-exception-caught
|
||||||
# allow _ for ignored variables
|
# allow _ for ignored variables
|
||||||
# allow generic names like a,b,c and i,j,k,l,m,n and x,y,z
|
# allow generic names like a,b,c and i,j,k,l,m,n and x,y,z
|
||||||
# allow k,v for key/value
|
# allow k,v for key/value
|
||||||
|
@ -2786,7 +2786,7 @@ async def compose_up(compose: PodmanCompose, args):
|
|||||||
down_args = argparse.Namespace(**dict(args.__dict__, volumes=False))
|
down_args = argparse.Namespace(**dict(args.__dict__, volumes=False))
|
||||||
await compose.commands["down"](compose, down_args)
|
await compose.commands["down"](compose, down_args)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(f"Error during shutdown: {e}")
|
log.error("Error during shutdown: %s", e)
|
||||||
finally:
|
finally:
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
task.cancel()
|
task.cancel()
|
||||||
|
Loading…
Reference in New Issue
Block a user