From 0fa5020a82e602aa56f74122223971fc0e0c0018 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Fri, 19 Jan 2024 09:59:47 +0000 Subject: [PATCH] remove @UnusedVariable --- .pylint_dict.txt | 1 - spinn_utilities/progress_bar.py | 4 ++-- unittests/test_conf_loader.py | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.pylint_dict.txt b/.pylint_dict.txt index 6766d2a9..7c91ac63 100644 --- a/.pylint_dict.txt +++ b/.pylint_dict.txt @@ -35,7 +35,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):