@@ -76,7 +76,7 @@ def test_systemexit_0(
76
76
tmp_path .joinpath ("example.py" ).write_text ("" )
77
77
78
78
with pytest .raises (SystemExit ) as exc_info :
79
- from flake8_async import __main__ # noqa: F401
79
+ from flake8_async import __main__ # noqa: F401, PLC0415
80
80
81
81
assert exc_info .value .code == 0
82
82
out , err = capsys .readouterr ()
@@ -91,7 +91,7 @@ def test_systemexit_1(
91
91
monkeypatch_argv (monkeypatch , tmp_path )
92
92
93
93
with pytest .raises (SystemExit ) as exc_info :
94
- from flake8_async import __main__ # noqa: F401
94
+ from flake8_async import __main__ # noqa: F401, PLC0415
95
95
96
96
assert exc_info .value .code == 1
97
97
out , err = capsys .readouterr ()
@@ -174,7 +174,7 @@ def test_anyio_from_config(tmp_path: Path, capsys: pytest.CaptureFixture[str]):
174
174
"""
175
175
)
176
176
177
- from flake8_async .visitors .visitor2xx import Visitor22X
177
+ from flake8_async .visitors .visitor2xx import Visitor22X # noqa: PLC0415
178
178
179
179
err_msg = Visitor22X .error_codes ["ASYNC220" ].format (
180
180
"subprocess.Popen" ,
@@ -193,7 +193,7 @@ def test_anyio_from_config(tmp_path: Path, capsys: pytest.CaptureFixture[str]):
193
193
194
194
# construct the full error message
195
195
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
197
197
198
198
returnvalue = main (
199
199
argv = [
@@ -246,7 +246,7 @@ def test_200_from_config_flake8_internals(
246
246
# replace ./ with tmp_path/
247
247
err_msg = str (tmp_path ) + EXAMPLE_PY_TEXT [1 :]
248
248
249
- from flake8 .main .cli import main
249
+ from flake8 .main .cli import main # noqa: PLC0415
250
250
251
251
returnvalue = main (
252
252
argv = [
@@ -330,7 +330,7 @@ def test_900_default_off():
330
330
331
331
@pytest .mark .skipif (flake8 is None , reason = "flake8 is not installed" )
332
332
def 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
334
334
335
335
returnvalue = main (
336
336
argv = [
0 commit comments