From 9ff429b09b76ecbd73e2fb8a2b65107b26be2603 Mon Sep 17 00:00:00 2001 From: Urvashi Mohnani Date: Tue, 7 Nov 2023 08:17:00 -0500 Subject: [PATCH] Add some pylint disables This is used towork around some invalid-name issue and cyclic import issue which seems to be a bug in pylint Signed-off-by: Urvashi Mohnani --- podman/api/ssh.py | 1 + podman/api/uds.py | 1 + podman/errors/exceptions.py | 1 + 3 files changed, 3 insertions(+) diff --git a/podman/api/ssh.py b/podman/api/ssh.py index 8ec17626..ccac8c6d 100644 --- a/podman/api/ssh.py +++ b/podman/api/ssh.py @@ -203,6 +203,7 @@ def connect(self) -> None: class SSHConnectionPool(urllib3.HTTPConnectionPool): """Specialized HTTPConnectionPool for holding SSH connections.""" + # pylint: disable=invalid-name ConnectionCls = SSHConnection diff --git a/podman/api/uds.py b/podman/api/uds.py index e159f0cd..72133daf 100644 --- a/podman/api/uds.py +++ b/podman/api/uds.py @@ -90,6 +90,7 @@ def connect(self) -> None: class UDSConnectionPool(urllib3.HTTPConnectionPool): """Specialization of HTTPConnectionPool for holding UNIX domain sockets.""" + # pylint: disable=invalid-name ConnectionCls = UDSConnection diff --git a/podman/errors/exceptions.py b/podman/errors/exceptions.py index e24ed754..72dc809d 100644 --- a/podman/errors/exceptions.py +++ b/podman/errors/exceptions.py @@ -8,6 +8,7 @@ # Break circular import if typing.TYPE_CHECKING: + # pylint: disable=all from podman.domain.containers import Container from podman.api.client import APIResponse