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

Ignore the new W504 error from flake8 to get the tests passing #39

Merged
merged 5 commits into from Oct 25, 2018

Conversation

alex
Copy link
Contributor

@alex alex commented Oct 24, 2018

No description provided.

@alex
Copy link
Contributor Author

alex commented Oct 24, 2018

I'm very confused, it doesn't appear to be ignoring either of the errors it says it's ignoring?

@ohemorange
Copy link
Contributor

Not sure why this isn't working. Could try flipping the order of the ignores to see if that helps, but honestly it's only yelling about a few places so it might just be worth it to fix those.

@alex
Copy link
Contributor Author

alex commented Oct 25, 2018

Switched order doesn't seem to affect it.

Maybe the E501s can be fixed, but unfortunately I don't think the W504s can. W504 complains about a binary operator before a linebreak, there's also a warning about binary operators after a linebreak, so you need to ignore at least one of them!

@ohemorange
Copy link
Contributor

This seems relevant: tholo/pytest-flake8#8 (comment)

pytest.ini Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
ohemorange and others added 2 commits October 25, 2018 14:29
Co-Authored-By: alex <alex.gaynor@gmail.com>
Co-Authored-By: alex <alex.gaynor@gmail.com>
@alex
Copy link
Contributor Author

alex commented Oct 25, 2018

Nice catch! (Also the "suggest changes" UI is slick!)

Copy link
Contributor

@ohemorange ohemorange left a comment

Choose a reason for hiding this comment

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

Thanks for catching and fixing this!

@ohemorange ohemorange merged commit 9a92bcf into certbot:master Oct 25, 2018
@alex alex deleted the patch-1 branch October 25, 2018 19:38
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.

None yet

2 participants