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

Develop #1666

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Develop #1666

wants to merge 4 commits into from

Conversation

Rabb1t-Artem
Copy link

No description provided.

Copy link

@sumseer sumseer left a comment

Choose a reason for hiding this comment

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

gj!

app/main.py Outdated
pass
return [
format_single_linter_file(file, errors)
for file, errors in linter_report.items()

Choose a reason for hiding this comment

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

Better to name it file_path to be more descriptive

app/main.py Outdated
Comment on lines 2 to 8
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.

Use get() method for dict, in case if you don't have some key inside of your dict and you will try to get it with [key] - it will give you error

Copy link
Contributor

@Nattalli Nattalli left a comment

Choose a reason for hiding this comment

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

👍🏻

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.

4 participants