diff --git a/bin/tests/system/isctest/log/basic.py b/bin/tests/system/isctest/log/basic.py index 89201f61c7..762741f571 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 195925092a..c8d2dcd42c 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 ce95260f60..aacdfbb435 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 6cf85d6566..e9aa7a6fd4 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 bd720c87f1..920a84c311 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 85913c34e0..50b67aaef4 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 0651ecf5ad..83c4275ecb 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 d59e005c6d..f1ec60bec2 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 6a8dc81bbe..51beb6bef8 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