Fix flake8 E303,W293,W291,W292,E305

Some of the previously fixed things creeped in. I would like to keep the
requirements low on the PR authors for now and gradually improve the
pep8 compliance without introducing much breakage.
This commit is contained in:
Andy Melnikov
2023-04-12 21:15:00 +02:00
parent 73378b176c
commit e635cf4a4a
3 changed files with 2 additions and 3 deletions

View File

@@ -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.

View File

@@ -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')):

View File

@@ -3,6 +3,6 @@ import unittest
if __name__ == "__main__":
# Load all tests from the 'scripts/tests' package
suite = unittest.defaultTestLoader.discover('scripts/tests')
# Run the tests
unittest.TextTestRunner().run(suite)