Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/879938 )

Change subject: [flake8] Ignore B028 bugbear checks
......................................................................

[flake8] Ignore B028 bugbear checks

The bugbear B028 is wrong if the variable is not a string,
see https://github.com/PyCQA/flake8-bugbear/issues/329.

Change-Id: I8b52181c021b1870ef223bf223814cd90095e527
---
M tox.ini
1 file changed, 14 insertions(+), 1 deletion(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/tox.ini b/tox.ini
index a5f454b..a55b81b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -109,6 +109,7 @@

 [flake8]
 # The following are intentionally ignored, possibly pending consensus
+# B028: False positive, see https://github.com/PyCQA/flake8-bugbear/issues/329
 # D105: Missing docstring in magic method
 # D211: No blank lines allowed before class docstring
 # FI1: __future__ import "x" missing
@@ -131,7 +132,7 @@

 # DARXXX: Darglint docstring issues to be solved

-ignore = 
B007,D105,D211,D401,D413,D412,DAR003,DAR101,DAR102,DAR201,DAR202,DAR301,DAR401,DAR402,DAR501,H101,H238,H301,H306,H404,H405,H903,P101,P102,P103,P205,W503
+ignore = 
B007,B028,D105,D211,D401,D413,D412,DAR003,DAR101,DAR102,DAR201,DAR202,DAR301,DAR401,DAR402,DAR501,H101,H238,H301,H306,H404,H405,H903,P101,P102,P103,P205,W503
 enable-extensions = H203,H204,H205,N818

 color = always

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/879938
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8b52181c021b1870ef223bf223814cd90095e527
Gerrit-Change-Number: 879938
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to