From c17a1fc28ce9eff8fc36c9a091bb4f8959b050f3 Mon Sep 17 00:00:00 2001 From: James Knight Date: Thu, 5 Dec 2024 00:15:30 -0500 Subject: [PATCH 1/2] lint: update ruff to v0.8.1 Update the fixed ruff version to its most recent. Signed-off-by: James Knight --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ff626b38..43923381 100644 --- a/tox.ini +++ b/tox.ini @@ -67,7 +67,7 @@ commands = [testenv:ruff] deps = {[testenv]deps} - ruff: ruff==0.6.9 + ruff: ruff==0.8.1 setenv = {[testenv]setenv} RUFF_CACHE_DIR={toxworkdir}/.ruff_cache From d14897d962600803f95b9bca3b148029842a8ec0 Mon Sep 17 00:00:00 2001 From: James Knight Date: Thu, 5 Dec 2024 00:16:49 -0500 Subject: [PATCH 2/2] tests: rework url check loop (linting) Signed-off-by: James Knight --- tests/unit-tests/test_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit-tests/test_util.py b/tests/unit-tests/test_util.py index 17a75b1b..03966431 100644 --- a/tests/unit-tests/test_util.py +++ b/tests/unit-tests/test_util.py @@ -18,5 +18,5 @@ def test_util_normalize_baseurl(self): 'https://intranet-wiki.example.com/rest/api/': 'https://intranet-wiki.example.com/', 'http://example.atlassian.net/wiki': 'http://example.atlassian.net/wiki/', } - for key in data: - self.assertEqual(ConfluenceUtil.normalize_base_url(key), data[key]) + for key, val in data.items(): + self.assertEqual(ConfluenceUtil.normalize_base_url(key), val)