Skip to content

Commit

Permalink
README.md changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Havryliv committed Aug 2, 2022
1 parent dce367f commit 85bdece
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- Read [the guideline](https://github.com/mate-academy/py-task-guideline/blob/main/README.md) before start

The flake8 linter gives the following error report when checking a directory with source code files:
The `flake8` linter gives the following error report when checking a directory with source code files:
```python
errors = {
"./test_source_code_2.py": [],
Expand Down Expand Up @@ -100,15 +100,15 @@ errors = {
}
```
Here `errors` is a dictionary, where the keys are the path to the file,
and the value of this key is a list of errors, where each error is a dictionary.
and the value of this key is a list of errors, where each is a dictionary.

But we store the execution results in a slightly different format.
Write 3 functions to convert the report in the format we need.
1. `format_linter_error` - formats a single error.
2. `format_single_linter_file` - formats all errors for a particular file.
3. `format_linter_report` - formats all errors for all files in the report.
Write 3 functions to convert the report into the format we need:
1. `format_linter_error` - formats a single error;
2. `format_single_linter_file` - formats all errors for a particular file;
3. `format_linter_report` - formats all errors for all report files.

All functions must contain only the `return` construct.
All functions must contain only the `return` keyword.

Required storage format:
```python
Expand Down

0 comments on commit 85bdece

Please sign in to comment.