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

Fix general PEP8 problems, improve maintainability #67

Merged
merged 18 commits into from
Oct 31, 2021
Merged

Conversation

michadenheijer
Copy link
Owner

No description provided.

@michadenheijer michadenheijer marked this pull request as draft July 15, 2021 18:20
NoneType = type(None)


def article_search_check_input(
Copy link

Choose a reason for hiding this comment

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

Function article_search_check_input has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.

return datetime.datetime(input.year, input.month, input.day)


def article_search_parse_dates(
Copy link

Choose a reason for hiding this comment

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

Function article_search_parse_dates has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

return datetime.datetime(input.year, input.month, input.day)


def movie_reviews_check_input(
Copy link

Choose a reason for hiding this comment

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

Function movie_reviews_check_input has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.

raise TypeError("Critics Pick needs to be a bool")


def movie_reviews_parse_dates(
Copy link

Choose a reason for hiding this comment

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

Function movie_reviews_parse_dates has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.

NoneType: type = type(None)


def book_reviews_check_input(
Copy link

Choose a reason for hiding this comment

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

Function book_reviews_check_input has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

NoneType = type(None)


def article_search_check_input(
Copy link

Choose a reason for hiding this comment

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

Function article_search_check_input has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.

return datetime.datetime(input.year, input.month, input.day)


def article_search_parse_dates(
Copy link

Choose a reason for hiding this comment

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

Function article_search_parse_dates has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

return datetime.datetime(input.year, input.month, input.day)


def movie_reviews_check_input(
Copy link

Choose a reason for hiding this comment

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

Function movie_reviews_check_input has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.

raise TypeError("Critics Pick needs to be a bool")


def movie_reviews_parse_dates(
Copy link

Choose a reason for hiding this comment

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

Function movie_reviews_parse_dates has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.

NoneType: type = type(None)


def book_reviews_check_input(
Copy link

Choose a reason for hiding this comment

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

Function book_reviews_check_input has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

@michadenheijer michadenheijer added the enhancement New feature or request label Oct 31, 2021
@michadenheijer michadenheijer added this to the v0.8.0 milestone Oct 31, 2021
@michadenheijer michadenheijer marked this pull request as ready for review October 31, 2021 12:40
@michadenheijer michadenheijer merged commit 64c4e2f into main Oct 31, 2021
@michadenheijer michadenheijer deleted the code-quality branch October 31, 2021 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant