From c6b3d497d67b891426fdcf9642979fdb6d500cdd Mon Sep 17 00:00:00 2001 From: Italo Maia Date: Tue, 25 Feb 2025 20:04:22 +0100 Subject: [PATCH] Adds lint exclusions already ignored by the code Added flake8 excludes to rules that are already ignored by the current code to avoid validation issues with code that has already been approved. Added pylint disable to line with lint offense already accepted. Signed-off-by: Italo Maia --- podman_compose.py | 3 ++- setup.cfg | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 24e2d41..d2ecbcc 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1299,7 +1299,8 @@ class ServiceDependencyCondition(Enum): try: return docker_to_podman_cond[value] except KeyError: - raise ValueError(f"Value '{value}' is not a valid condition for a service dependency") # pylint: disable=raise-missing-from + # pylint: disable-next=raise-missing-from + raise ValueError(f"Value '{value}' is not a valid condition for a service dependency") class ServiceDependency: diff --git a/setup.cfg b/setup.cfg index 62c97c4..f0e43ff 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,4 +6,6 @@ version = attr: podman_compose.__version__ [flake8] # The GitHub editor is 127 chars wide -max-line-length=127 \ No newline at end of file +max-line-length=127 +# These are not being followed yet +ignore=E222,E231,E272,E713,W503 \ No newline at end of file