Skip to content

Commit 09457b0

Browse files
committed
fix: linting issues
1 parent d5668c5 commit 09457b0

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

silverback/_cli.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import asyncio
22
import os
3+
import shlex
4+
import subprocess
35
from pathlib import Path
46

57
import click
6-
import shlex
7-
import subprocess
88
import yaml # type: ignore[import-untyped]
9-
109
from ape.cli import (
1110
AccountAliasPromptChoice,
1211
ConnectedProviderCommand,
@@ -146,7 +145,7 @@ def build(generate, path):
146145
break
147146
bots.append(file)
148147
for bot in bots:
149-
if '__init__' in bot.name:
148+
if "__init__" in bot.name:
150149
docker_filename = f"Dockerfile.{bot.parent.name}"
151150
else:
152151
docker_filename = f"Dockerfile.{bot.name.replace('.py', '')}"
@@ -167,14 +166,12 @@ def build(generate, path):
167166
for file in dockerfiles:
168167
try:
169168
command = shlex.split(
170-
f"docker build -f ./{file.parent.name}/{file.name} -t {file.name.split('.')[1]}:latest ."
169+
"docker build -f "
170+
f"./{file.parent.name}/{file.name} "
171+
f"-t {file.name.split('.')[1]}:latest ."
171172
)
172173
result = subprocess.run(
173-
command,
174-
stdout=subprocess.PIPE,
175-
stderr=subprocess.PIPE,
176-
text=True,
177-
check=True
174+
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True
178175
)
179176
click.echo(result.stdout)
180177
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)