From f8d493bcebee2ee7894bfe66d257d43292d38a1a Mon Sep 17 00:00:00 2001 From: Oleksii Chuprykov Date: Tue, 23 Sep 2014 17:24:46 +0300 Subject: [PATCH] Enable F841 check Change-Id: I57f085fc265078c5d04c0636b6ecf9bdd524b900 --- tests/unit/test_swift_store.py | 2 +- tox.ini | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_swift_store.py b/tests/unit/test_swift_store.py index 1724172b..6815f80c 100644 --- a/tests/unit/test_swift_store.py +++ b/tests/unit/test_swift_store.py @@ -1127,7 +1127,7 @@ class TestChunkReader(base.StoreBaseTest): def setUp(self): super(TestChunkReader, self).setUp() conf = copy.deepcopy(SWIFT_CONF) - store = Store(self.conf) + Store(self.conf) self.config(**conf) def test_read_all_data(self): diff --git a/tox.ini b/tox.ini index eb9f3373..d7937579 100644 --- a/tox.ini +++ b/tox.ini @@ -29,9 +29,8 @@ commands = {posargs} # TODO(dmllr): Analyze or fix the warnings blacklisted below # E711 comparison to None should be 'if cond is not None:' # E712 comparison to True should be 'if cond is True:' or 'if cond:' -# F841 local variable 'name' assigned but never used # H301 one import per line # H404 multi line docstring should start with a summary -ignore = E711,E712,F841,H301,H404 +ignore = E711,E712,H301,H404 builtins = _ exclude = .venv,.git,.tox,dist,doc,etc,*glance_store/locale*,*openstack/common*,*lib/python*,*egg,build