Skip to content

Commit

Permalink
Add some pylint disables
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
umohnani8 committed Nov 7, 2023
1 parent e74fea2 commit 6390eab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions podman/api/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def connect(self) -> None:
class SSHConnectionPool(urllib3.HTTPConnectionPool):
"""Specialized HTTPConnectionPool for holding SSH connections."""

# pylint: disable=invalid-name
ConnectionCls = SSHConnection


Expand Down
1 change: 1 addition & 0 deletions podman/api/uds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion podman/errors/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Break circular import
if typing.TYPE_CHECKING:
from podman.domain.containers import Container
from podman.api.client import APIResponse
from podman.api.client import APIResponse # pylint: disable=cyclic-import


class APIError(HTTPError):
Expand Down

0 comments on commit 6390eab

Please sign in to comment.