8000 Ignore flake8 warnings about assert False by msullivan · Pull Request #6602 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 2 commits into from
Mar 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ignore more
  • Loading branch information
msullivan committed Mar 29, 2019
commit 4a0b51be3169b9a9d698fafadf2ac707ef8748b9
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ exclude =
# B AB47 006: use of mutable defaults in function signatures
# B007: Loop control variable not used within the loop body.
# B011: Don't use assert False
Copy link
Member

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???

Copy link
Collaborator Author

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().

ignore = E251,E128,F401,W601,E701,W503,W504,E704,E402,B3,B006,B007,B011
# B009: Don't use getattr with constant strings (FIXME)
ignore = E251,E128,F401,W601,E701,W503,W504,E704,E402,B3,B006,B007,B011,B009

[coverage:run]
branch = true
Expand Down
0