Skip to content

Commit 6109ce4

Browse files
committed
fix: linting
1 parent bb93841 commit 6109ce4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

silverback/_cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@
1919
cls_import_callback,
2020
cluster_client,
2121
display_login_message,
22-
platform_client,
2322
path_callback,
23+
platform_client,
2424
)
25-
from silverback._importer import import_from_string
2625
from silverback.cluster.client import ClusterClient, PlatformClient
2726
from silverback.cluster.types import ClusterTier
2827
from silverback.runner import PollingRunner, WebsocketRunner
2928
from silverback.worker import run_worker
3029

31-
3230
DOCKERFILE_CONTENT = """
3331
FROM ghcr.io/apeworx/silverback:stable
3432
USER root

silverback/_click_ext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
PlatformProfile,
1515
ProfileSettings,
1616
)
17+
1718
from .exceptions import ImportFromStringError
1819

1920
# NOTE: only load once
@@ -246,14 +247,13 @@ def get_cluster_client(ctx: click.Context, *args, **kwargs):
246247

247248

248249
def path_callback(ctx: click.Context, param: click.Parameter, value):
249-
path = ctx.params.get('path')
250+
path = ctx.params.get("path")
250251
if not path:
251252
path = "bot:bot"
252253
elif ":" not in path:
253254
path += ":bot"
254255

255256
try:
256257
return import_from_string(path)
257-
except ImportFromStringError as e:
258+
except ImportFromStringError:
258259
return import_from_string(f"bots.{path}")
259-

0 commit comments

Comments
 (0)