From d7fc4ee0cec3abe1f81f14c9a068987471e07dab Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Thu, 28 Mar 2019 16:57:17 -0700 Subject: [PATCH 1/2] Ignore flake8 warnings about assert False --- setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 8302cc98c41a..0b274dd1d983 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 +ignore = E251,E128,F401,W601,E701,W503,W504,E704,E402,B3,B006,B007,B011 [coverage:run] branch = true From 4a0b51be3169b9a9d698fafadf2ac707ef8748b9 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Thu, 28 Mar 2019 17:25:47 -0700 Subject: [PATCH 2/2] Ignore more --- setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 0b274dd1d983..0e9ddce52b5e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,7 +42,8 @@ exclude = # B006: use of mutable defaults in function signatures # B007: Loop control variable not used within the loop body. # B011: Don't use assert False -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