Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

olution #1943

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

olution #1943

wants to merge 1 commit into from

Conversation

borunov65
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on implementing the required functions and meeting the task requirements! 🎉 While there are some minor formatting issues with the dictionary keys and values that could lead to syntax errors, these do not significantly impact the functionality of your code. Please ensure that each key-value pair in your dictionaries is properly separated by commas to avoid any potential issues. Keep up the good work and continue refining your coding skills! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +2 to +10
return {"line": error
["line_number"]
, "column": error
["column_number"]
, "message": error
["text"]
, "name": error
["code"]
, "source": "flake8"}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dictionary keys and values in the format_linter_error function are not formatted correctly. Ensure that each key-value pair is separated by a comma, and the dictionary is properly structured. For example, the line should be return {"line": error["line_number"], "column": error["column_number"], ...}.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Перевірив - кожна пара ключ-значення розділені комою. Структурував таким чином, щоб зменшити довжину рядка - flake8 app показував помилку. Виніс усі значення пар в [ ] в окремі рядки.

Comment on lines +14 to +17
return {"errors":
[format_linter_error(error) for error in errors]
, "path": file_path, "status": "passed"
if errors == [] else "failed"}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the previous function, ensure that the dictionary in format_single_linter_file is properly formatted with commas separating each key-value pair. The current structure may lead to syntax errors.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Перевірив - усі коми на місці.

@borunov65 borunov65 closed this Jan 8, 2025
@borunov65 borunov65 reopened this Jan 8, 2025
@borunov65 borunov65 closed this Jan 8, 2025
@borunov65 borunov65 reopened this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants