Skip to content

Commit

Permalink
Solution v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Den-k0 committed Sep 25, 2024
1 parent e58045c commit 09ba9a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
def format_linter_error(error: dict) -> dict:
return {
"line": error["line_number"],
"column": error["column_number"],
"message": error["text"],
"name": error["code"],
"line": error.get("line_number"),
"column": error.get("column_number"),
"message": error.get("text"),
"name": error.get("code"),
"source": "flake8"
}

Expand All @@ -21,6 +21,6 @@ def format_single_linter_file(file_path: str, errors: list) -> dict:

def format_linter_report(linter_report: dict) -> list:
return [
format_single_linter_file(filepath, issues)
for filepath, issues in linter_report.items()
format_single_linter_file(file_path, issues)
for file_path, issues in linter_report.items()
]

0 comments on commit 09ba9a7

Please sign in to comment.