From 4d6ce8aa37ff0869729743a4c1fff88de770b6e0 Mon Sep 17 00:00:00 2001
From: lukken <lukken@astron.nl>
Date: Tue, 25 Jan 2022 11:05:42 +0000
Subject: [PATCH] Add bugbear to linting as to detect erroneous code

---
 tangostationcontrol/test-requirements.txt | 1 +
 tangostationcontrol/tox.ini               | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tangostationcontrol/test-requirements.txt b/tangostationcontrol/test-requirements.txt
index 16a9033db..1c18f0949 100644
--- a/tangostationcontrol/test-requirements.txt
+++ b/tangostationcontrol/test-requirements.txt
@@ -7,6 +7,7 @@ bandit>=1.6.0 # Apache-2.0
 coverage>=5.2.0 # Apache-2.0
 doc8>=0.8.0 # Apache-2.0
 flake8>=3.8.0 # MIT
+flake8-bugbear>=22.1.11 # MIT
 flake8-breakpoint>=1.1.0 # MIT
 flake8-debugger>=4.0.0 #MIT
 flake8-mock>=0.3 #GPL
diff --git a/tangostationcontrol/tox.ini b/tangostationcontrol/tox.ini
index fc0876dd0..47904b274 100644
--- a/tangostationcontrol/tox.ini
+++ b/tangostationcontrol/tox.ini
@@ -75,5 +75,5 @@ commands =
 
 [flake8]
 filename = *.py,.stestr.conf,.txt
-select = W292,B601,B602,T100,M001,F401
+select = W292,B601,B602,T100,M001,F401,B001,B002,B003,B004,B005,B006,B007,B008,B009,B010,B011,B012,B013,B014.B015,B016,B017,B018
 exclude=.tox,.egg-info
-- 
GitLab