From f106ea0c012098b341a9b9abec5b3f5fb63b396c Mon Sep 17 00:00:00 2001 From: Mohammad Kazemi Date: Sat, 1 Mar 2025 12:34:58 +0330 Subject: [PATCH] modifications to pass pylint test Signed-off-by: Mohammad Kazemi --- .pylintrc | 2 +- podman_compose.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 75169ce..05cf9e1 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,7 +1,7 @@ [MESSAGES CONTROL] # 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 -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 generic names like a,b,c and i,j,k,l,m,n and x,y,z # allow k,v for key/value diff --git a/podman_compose.py b/podman_compose.py index c7a1f56..844027a 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -2786,7 +2786,7 @@ async def compose_up(compose: PodmanCompose, args): down_args = argparse.Namespace(**dict(args.__dict__, volumes=False)) await compose.commands["down"](compose, down_args) except Exception as e: - log.error(f"Error during shutdown: {e}") + log.error("Error during shutdown: %s", e) finally: for task in tasks: task.cancel()