diff --git a/.pylint_dict.txt b/.pylint_dict.txt index 30156184..4cf4c77e 100644 --- a/.pylint_dict.txt +++ b/.pylint_dict.txt @@ -31,7 +31,6 @@ metaclasses # Python bits iter -UnusedVariable # Misc Github diff --git a/spinn_utilities/progress_bar.py b/spinn_utilities/progress_bar.py index d69b8b48..3b4e3ebe 100644 --- a/spinn_utilities/progress_bar.py +++ b/spinn_utilities/progress_bar.py @@ -186,7 +186,7 @@ def __enter__(self): """ return self - def __exit__(self, exty, exval, traceback): # @UnusedVariable + def __exit__(self, exty, exval, traceback): self.end() return False @@ -213,7 +213,7 @@ def over(self, collection: Iterable[T], if finish_at_end: self.end() - def __new__(cls, *args, **kwargs): # @UnusedVariable + def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument c = cls if _EnhancedProgressBar._enabled: diff --git a/unittests/test_conf_loader.py b/unittests/test_conf_loader.py index 285b9827..572d100b 100644 --- a/unittests/test_conf_loader.py +++ b/unittests/test_conf_loader.py @@ -133,21 +133,21 @@ def test_use_one_default(tmpdir, not_there): assert config.get("sect", "foobob") == "bar" -def test_no_templates(tmpdir, default_config, not_there): # @UnusedVariable +def test_no_templates(tmpdir, default_config, not_there): name, place = not_there with tmpdir.as_cwd(): with pytest.raises(ConfigTemplateException): conf_loader.load_config(name, [THREEPATH, FOURPATH]) -def test_one_templates(tmpdir, default_config, not_there): # @UnusedVariable +def test_one_templates(tmpdir, default_config, not_there): name, place = not_there with tmpdir.as_cwd(): with pytest.raises(NoConfigFoundException): conf_loader.load_config(name, [FOURPATH, ONEPATH, THREEPATH]) -def test_two_templates(tmpdir, default_config, not_there): # @UnusedVariable +def test_two_templates(tmpdir, default_config, not_there): name, place = not_there with tmpdir.as_cwd(): with pytest.raises(ConfigTemplateException):