AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix: Fix flake8 linting errors
Drikus Roorabe01ab81e04
diff --git a/scripts/execute_code.py b/scripts/execute_code.pyindex 2c92903cf4..dbd62c2265 100644--- a/scripts/execute_code.py+++ b/scripts/execute_code.py@@ -67,6 +67,7 @@ def execute_python_file(file):except Exception as e:return f"Error: {str(e)}"+def execute_shell(command_line):current_dir = os.getcwd()diff --git a/scripts/logger.py b/scripts/logger.pyindex 42a4387851..f5e94687b0 100644--- a/scripts/logger.py+++ b/scripts/logger.py@@ -161,11 +161,11 @@ class ConsoleHandler(logging.StreamHandler):self.handleError(record)-'''-Allows to handle custom placeholders 'title_color' and 'message_no_color'.-To use this formatter, make sure to pass 'color', 'title' as log extras.-'''class AutoGptFormatter(logging.Formatter):+ """+ Allows to handle custom placeholders 'title_color' and 'message_no_color'.+ To use this formatter, make sure to pass 'color', 'title' as log extras.+ """def format(self, record: LogRecord) -> str:if (hasattr(record, 'color')):record.title_color = getattr(record, 'color') + getattr(record, 'title') + " " + Style.RESET_ALLdiff --git a/scripts/memory/base.py b/scripts/memory/base.pyindex 1be7b3ddcb..96cf3df135 100644--- a/scripts/memory/base.py+++ b/scripts/memory/base.py@@ -4,7 +4,6 @@ from config import AbstractSingleton, Configimport openaicfg = Config()-cfg = Config()def get_ada_embedding(text):text = text.replace("\n", " ")