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 9ff429b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
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
1 change: 1 addition & 0 deletions podman/errors/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9ff429b

Please sign in to comment.