diff --git a/app/main.py b/app/main.py index abbbac85..f517b179 100644 --- a/app/main.py +++ b/app/main.py @@ -7,10 +7,4 @@ def format_single_linter_file(file_path: str, errors: list) -> dict: def format_linter_report(linter_report: dict) -> list: - return [{"errors": [{"line": error["line_number"], "column": error["column_number"], "message": error["text"], "name": error["code"], "source": "flake8"} for error in errors], "path": path, "status": "failed" if errors else "passed"} for path, errors in linter_report.items()] - - - - - - + return [{"errors": [{"line": error["line_number"], "column": error["column_number"], "message": error["text"], "name": error["code"], "source": "flake8"} for error in errors], "path": path, "status": "failed" if errors else "passed"} for path, errors in linter_report.items()] \ No newline at end of file