From: Štěpán Balážik Date: Mon, 9 Feb 2026 13:42:48 +0000 (+0100) Subject: Remove unused imports X-Git-Tag: v9.20.20~5^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5d5a6433cbd78ba60273f141f2da031c13ee2f5;p=thirdparty%2Fbind9.git Remove unused imports Generated with: ruff check --extend-select F401 --fix (cherry picked from commit b00f16f0269bf8b27b8aa6af17f5b1705b6d9b48) --- diff --git a/bin/tests/system/isctest/log/basic.py b/bin/tests/system/isctest/log/basic.py index 89201f61c71..762741f5710 100644 --- a/bin/tests/system/isctest/log/basic.py +++ b/bin/tests/system/isctest/log/basic.py @@ -10,7 +10,6 @@ # information regarding copyright ownership. from pathlib import Path -from typing import Dict, Optional import logging import textwrap diff --git a/bin/tests/system/nsec3/tests_nsec3_change.py b/bin/tests/system/nsec3/tests_nsec3_change.py index 195925092a2..c8d2dcd42c7 100644 --- a/bin/tests/system/nsec3/tests_nsec3_change.py +++ b/bin/tests/system/nsec3/tests_nsec3_change.py @@ -11,7 +11,6 @@ # pylint: disable=redefined-outer-name,unused-import -import os import shutil import time @@ -19,8 +18,8 @@ import dns import dns.update import pytest -from isctest.vars.algorithms import RSASHA1, Algorithm -from nsec3.common import NSEC3_MARK, check_nsec3_case, default_config +from isctest.vars.algorithms import Algorithm +from nsec3.common import NSEC3_MARK, check_nsec3_case import isctest import isctest.mark diff --git a/bin/tests/system/nsec3/tests_nsec3_initial.py b/bin/tests/system/nsec3/tests_nsec3_initial.py index ce95260f601..aacdfbb435e 100644 --- a/bin/tests/system/nsec3/tests_nsec3_initial.py +++ b/bin/tests/system/nsec3/tests_nsec3_initial.py @@ -18,7 +18,7 @@ import dns.update import pytest from isctest.vars.algorithms import RSASHA1, Algorithm -from nsec3.common import NSEC3_MARK, check_nsec3_case, default_config +from nsec3.common import NSEC3_MARK, check_nsec3_case import isctest import isctest.mark diff --git a/bin/tests/system/nsec3/tests_nsec3_reconfig.py b/bin/tests/system/nsec3/tests_nsec3_reconfig.py index 6cf85d65667..e9aa7a6fd44 100644 --- a/bin/tests/system/nsec3/tests_nsec3_reconfig.py +++ b/bin/tests/system/nsec3/tests_nsec3_reconfig.py @@ -12,7 +12,6 @@ # pylint: disable=redefined-outer-name,unused-import import os -import shutil import time import dns @@ -20,7 +19,7 @@ import dns.update import pytest from isctest.vars.algorithms import RSASHA1, Algorithm -from nsec3.common import NSEC3_MARK, check_nsec3_case, default_config +from nsec3.common import NSEC3_MARK, check_nsec3_case import isctest import isctest.mark diff --git a/bin/tests/system/nsec3/tests_nsec3_reload.py b/bin/tests/system/nsec3/tests_nsec3_reload.py index bd720c87f15..920a84c3117 100644 --- a/bin/tests/system/nsec3/tests_nsec3_reload.py +++ b/bin/tests/system/nsec3/tests_nsec3_reload.py @@ -11,12 +11,7 @@ # pylint: disable=redefined-outer-name,unused-import -import os import shutil -import time - -import dns -import pytest from nsec3.common import NSEC3_MARK, check_nsec3_case diff --git a/bin/tests/system/nsec3/tests_nsec3_restart.py b/bin/tests/system/nsec3/tests_nsec3_restart.py index 85913c34e05..50b67aaef4b 100644 --- a/bin/tests/system/nsec3/tests_nsec3_restart.py +++ b/bin/tests/system/nsec3/tests_nsec3_restart.py @@ -18,7 +18,7 @@ import dns.update import pytest from isctest.vars.algorithms import Algorithm -from nsec3.common import NSEC3_MARK, check_nsec3_case, check_nsec3param, default_config +from nsec3.common import NSEC3_MARK, check_nsec3_case, check_nsec3param import isctest import isctest.mark diff --git a/bin/tests/system/nsec3/tests_nsec3_retransfer.py b/bin/tests/system/nsec3/tests_nsec3_retransfer.py index 0651ecf5ada..83c4275ecb7 100644 --- a/bin/tests/system/nsec3/tests_nsec3_retransfer.py +++ b/bin/tests/system/nsec3/tests_nsec3_retransfer.py @@ -14,11 +14,9 @@ from datetime import timedelta import os -import shutil import dns import dns.update -import pytest from isctest.vars.algorithms import RSASHA256 from nsec3.common import NSEC3_MARK, check_auth_nsec3, check_nsec3param diff --git a/bin/tests/system/rollover-multisigner/tests_rollover_multisigner.py b/bin/tests/system/rollover-multisigner/tests_rollover_multisigner.py index d59e005c6d2..f1ec60bec2e 100644 --- a/bin/tests/system/rollover-multisigner/tests_rollover_multisigner.py +++ b/bin/tests/system/rollover-multisigner/tests_rollover_multisigner.py @@ -17,7 +17,6 @@ import os import dns import dns.update -import pytest from isctest.kasp import Iret from isctest.run import EnvCmd diff --git a/pyproject.toml b/pyproject.toml index 6a8dc81bbe6..51beb6bef8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,6 +92,8 @@ target-version = "py310" lint.select = [ # import order "I", + # unused imports + "F401", # sorted __all__ "RUF022", # f-strings