@@ -16,7 +16,7 @@ def test_set_root_dir(tmp_path: Path) -> None:
1616 """Test for setting new root dir."""
1717 # skipcq
1818 importlib .reload (tiatoolbox )
19- from tiatoolbox import rcParam
19+ from tiatoolbox import rcParam # noqa: PLC0415
2020
2121 old_root_dir = rcParam ["TIATOOLBOX_HOME" ]
2222 test_dir_path = tmp_path / "tmp_check"
@@ -27,7 +27,7 @@ def test_set_root_dir(tmp_path: Path) -> None:
2727 # reimport to see if it overwrites
2828 # silence Deep Source because this is an intentional check
2929 # skipcq
30- from tiatoolbox import rcParam
30+ from tiatoolbox import rcParam # noqa: PLC0415
3131
3232 rcParam ["TIATOOLBOX_HOME" ].mkdir (parents = True )
3333 if not Path .exists (test_dir_path ):
@@ -135,9 +135,9 @@ def test_duplicate_filter(caplog: pytest.LogCaptureFixture) -> None:
135135
136136def test_lazy_import () -> None :
137137 """Test lazy import for tiatoolbox."""
138- import sys
138+ import sys # noqa: PLC0415
139139
140- from tiatoolbox import _lazy_import
140+ from tiatoolbox import _lazy_import # noqa: PLC0415
141141
142142 assert "exceptions" not in sys .modules
143143
@@ -151,7 +151,7 @@ def test_lazy_import() -> None:
151151
152152def test_lazy_import_module_not_found () -> None :
153153 """'Test lazy import for ModuleNotFoundError."""
154- from tiatoolbox import _lazy_import
154+ from tiatoolbox import _lazy_import # noqa: PLC0415
155155
156156 with pytest .raises (ModuleNotFoundError ):
157157 _lazy_import (
0 commit comments