Skip to content

Commit

Permalink
fix problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdna21 committed Oct 20, 2024
1 parent 4158241 commit 461626e
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 @@ -11,13 +11,7 @@ def format_linter_error(error: dict) -> dict:
def format_single_linter_file(file_path: str, errors: list) -> dict:
return {
"errors": [
{
"line": error["line_number"],
"column": error["column_number"],
"message": error["text"],
"name": error["code"],
"source": "flake8"
}
format_linter_error(error)
for error in errors
],
"path": file_path,
Expand Down

0 comments on commit 461626e

Please sign in to comment.