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 flake8 E303,W293,W291,W292,E305
Andy Melnikove635cf4a4ac4
diff --git a/scripts/ai_functions.py b/scripts/ai_functions.pyindex 782bb55871..8c95c0f240 100644--- a/scripts/ai_functions.py+++ b/scripts/ai_functions.py@@ -45,6 +45,7 @@ def improve_code(suggestions: List[str], code: str) -> str:result_string = call_ai_function(function_string, args, description_string)return result_string+def write_tests(code: str, focus: List[str]) -> str:"""A function that takes in code and focus topics and returns a response from create chat completion api call.diff --git a/scripts/logger.py b/scripts/logger.pyindex 5c7d68bb3b..85dde81331 100644--- a/scripts/logger.py+++ b/scripts/logger.py@@ -164,8 +164,6 @@ class ConsoleHandler(logging.StreamHandler):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):def format(self, record: LogRecord) -> str:if (hasattr(record, 'color')):diff --git a/tests.py b/tests.pyindex ce21c1f450..4dbfdd461a 100644--- a/tests.py+++ b/tests.py@@ -3,6 +3,6 @@ import unittestif __name__ == "__main__":# Load all tests from the 'scripts/tests' packagesuite = unittest.defaultTestLoader.discover('scripts/tests')-+# Run the testsunittest.TextTestRunner().run(suite)