Skip to content

Commit a8c4fec

Browse files
committed
chore: run ruff formatter
Signed-off-by: Kanishk Pachauri <[email protected]>
1 parent 5824448 commit a8c4fec

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

podman/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ def from_env(
144144
"max_pool_size": max_pool_size,
145145
}
146146

147-
host = (
148-
environment.get("CONTAINER_HOST")
149-
or environment.get("DOCKER_HOST")
150-
or None
151-
)
147+
host = environment.get("CONTAINER_HOST") or environment.get("DOCKER_HOST") or None
152148
if host is not None:
153149
kwargs["base_url"] = host
154150

podman/errors/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def __init__(
144144
class InvalidArgument(PodmanError):
145145
"""Parameter to method/function was not valid."""
146146

147+
147148
class PodmanConnectionError(PodmanError):
148149
"""Exception raised when connection to Podman service fails using environment configuration."""
149150

podman/tests/integration/test_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_login(self):
6464
def test_from_env(self):
6565
"""integration: from_env() no error"""
6666
PodmanClient.from_env()
67-
67+
6868
def test_from_env_exceptions(self):
6969
"""integration: from_env() returns exceptions"""
7070
with self.assertRaises(PodmanConnectionError):

0 commit comments

Comments
 (0)