Skip to content

Update flake8 #688

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

Merged
merged 5 commits into from
Jun 24, 2019
Merged

Update flake8 #688

merged 5 commits into from
Jun 24, 2019

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented Jun 24, 2019

Updated flake8 config to catch simple errors and help with development.

  • Add some more flake8 plugins (flake8-bugbear and flake8-black)
  • Run black on setup.py
  • Fix some issues raised by new flake8 config

Copy link
Contributor

@phalt phalt left a comment

Choose a reason for hiding this comment

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

👍 nice one

@@ -321,12 +321,14 @@ class Query(ObjectType):
pub_date=datetime.now(),
pub_date_time=datetime.now(),
reporter=r1,
editor=r1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems out of place, but I am also not sure how Articles were being created with a null editor....

Copy link
Member Author

Choose a reason for hiding this comment

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

@zbyte64 flake8 raised the fact that this test name was the same as another one further down the file and so it was never being run. So when I renamed that test (https://github.com/graphql-python/graphene-django/pull/688/files#diff-42247536fb4398767212e74574263a3bR455) this one started failing because of the missing editor param.

@jkimbo jkimbo merged commit 692540c into master Jun 24, 2019
@jkimbo jkimbo deleted the update-flake8 branch June 24, 2019 17:55
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.

3 participants