@@ -76,7 +76,7 @@ def test_systemexit_0(
7676 tmp_path .joinpath ("example.py" ).write_text ("" )
7777
7878 with pytest .raises (SystemExit ) as exc_info :
79- from flake8_async import __main__ # noqa: F401
79+ from flake8_async import __main__ # noqa: F401, PLC0415
8080
8181 assert exc_info .value .code == 0
8282 out , err = capsys .readouterr ()
@@ -91,7 +91,7 @@ def test_systemexit_1(
9191 monkeypatch_argv (monkeypatch , tmp_path )
9292
9393 with pytest .raises (SystemExit ) as exc_info :
94- from flake8_async import __main__ # noqa: F401
94+ from flake8_async import __main__ # noqa: F401, PLC0415
9595
9696 assert exc_info .value .code == 1
9797 out , err = capsys .readouterr ()
@@ -174,7 +174,7 @@ def test_anyio_from_config(tmp_path: Path, capsys: pytest.CaptureFixture[str]):
174174"""
175175 )
176176
177- from flake8_async .visitors .visitor2xx import Visitor22X
177+ from flake8_async .visitors .visitor2xx import Visitor22X # noqa: PLC0415
178178
179179 err_msg = Visitor22X .error_codes ["ASYNC220" ].format (
180180 "subprocess.Popen" ,
@@ -193,7 +193,7 @@ def test_anyio_from_config(tmp_path: Path, capsys: pytest.CaptureFixture[str]):
193193
194194 # construct the full error message
195195 expected = f"{ err_file } :{ lineno } :5: ASYNC220 { err_msg } \n "
196- from flake8 .main .cli import main
196+ from flake8 .main .cli import main # noqa: PLC0415
197197
198198 returnvalue = main (
199199 argv = [
@@ -246,7 +246,7 @@ def test_200_from_config_flake8_internals(
246246 # replace ./ with tmp_path/
247247 err_msg = str (tmp_path ) + EXAMPLE_PY_TEXT [1 :]
248248
249- from flake8 .main .cli import main
249+ from flake8 .main .cli import main # noqa: PLC0415
250250
251251 returnvalue = main (
252252 argv = [
@@ -330,7 +330,7 @@ def test_900_default_off():
330330
331331@pytest .mark .skipif (flake8 is None , reason = "flake8 is not installed" )
332332def test_900_default_off_flake8 (capsys : pytest .CaptureFixture [str ]):
333- from flake8 .main .cli import main
333+ from flake8 .main .cli import main # noqa: PLC0415
334334
335335 returnvalue = main (
336336 argv = [
0 commit comments