Fix linting

This commit is contained in:
Enzo Martin
2023-06-18 10:34:35 +02:00
parent 2f2fef50fe
commit 8b3862d94d
3 changed files with 20 additions and 17 deletions

View File

@@ -1,14 +1,13 @@
import os
import json
import os
import pathlib
import typer
import shutil
import typer
from gpt_engineer.ai import AI
from gpt_engineer.steps import STEPS
from gpt_engineer.db import DB, DBs
from gpt_engineer.steps import STEPS
app = typer.Typer()
@@ -30,7 +29,7 @@ def chat(
memory_path = input_path / (run_prefix + "memory")
workspace_path = input_path / (run_prefix + "workspace")
if delete_existing == 'true':
if delete_existing == "true":
# Delete files and subdirectories in paths
shutil.rmtree(memory_path, ignore_errors=True)
shutil.rmtree(workspace_path, ignore_errors=True)
@@ -52,5 +51,6 @@ def chat(
messages = step(ai, dbs)
dbs.logs[step.__name__] = json.dumps(messages)
if __name__ == "__main__":
app()