Skip to content

Commit 5197232

Browse files
format
1 parent febcc81 commit 5197232

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/get_knowledge_base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def setup_repositories():
3434
for repo_name, repo_url in repos.items():
3535
clone_repository(repo_url, os.path.join(tmp_dir, repo_name))
3636

37+
3738
def run_command(cmd):
3839
process = subprocess.Popen(
3940
cmd,
@@ -47,10 +48,13 @@ def run_command(cmd):
4748
logging.error(line.rstrip())
4849
process.wait()
4950
if process.returncode != 0:
50-
raise RuntimeError(f"Command {cmd} failed with return code {process.returncode}")
51+
raise RuntimeError(
52+
f"Command {cmd} failed with return code {process.returncode}"
53+
)
54+
5155

5256
def run_prebuild_script():
53-
""" Run the defang-docs repo prebuild script"""
57+
"""Run the defang-docs repo prebuild script"""
5458

5559
run_command(["npm", "-C", ".tmp/defang-docs", "--loglevel=error", "install"])
5660
run_command(["npm", "-C", ".tmp/defang-docs", "run", "prebuild"])

0 commit comments

Comments
 (0)