-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Ignore flake8 warnings about assert False #6602
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
Conversation
(Maybe we should pin a flake8 version?) |
@@ -41,7 +41,8 @@ exclude = | |||
# B3??: Python 3 compatibility warnings | |||
# B006: use of mutable defaults in function signatures | |||
# B007: Loop control variable not used within the loop body. | |||
ignore = E251,E128,F401,W601,E701,W503,W504,E704,E402,B3,B006,B007 | |||
# B011: Don't use assert False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does flake8 want you to use???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
Pinning deps seems to be a trend. :-) Though we should also strive to upgrade our dependencies regularly, which may become yet more busywork. Also, the flake errors that this failed on look reasonable. Just poorly timed during our release cycle. :-) |
Yeah. I am going to suppress them in config anyways, because of release cycle concerns, and then go back and actually fix them. |
(The new errors come from flake8-bugbear, it seems) |
Actually, in going to fix them, I've changed my mind. Basically every fix is adding either |
Hm, the ones about |
No description provided.