Skip to content

Commit

Permalink
fourth commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bashyrov committed Oct 9, 2024
1 parent 0fdf29c commit 5a68434
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]

0 comments on commit 5a68434

Please sign in to comment.