mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Fix linting
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user