Skip to content

Commit 375f70d

Browse files
authored
Merge pull request #92 from jakkdl/flake8_noqa_support
2 parents 02d20b4 + 145c0c9 commit 375f70d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

flake8_trio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(
7474
def __iter__(self):
7575
yield self.line
7676
yield self.col
77-
yield f"{self.code}: " + self.message.format(*self.args)
77+
yield f"{self.code} " + self.message.format(*self.args)
7878
yield type(Plugin)
7979

8080
def cmp(self):

tests/test_decorator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_command_line_1(capfd):
108108

109109

110110
expected_out = (
111-
"tests/trio_options.py:2:1: TRIO107: "
111+
"tests/trio_options.py:2:1: TRIO107 "
112112
+ Visitor107_108.error_codes["TRIO107"].format(
113113
"exit", Statement("function definition", 2)
114114
)

tests/test_flake8_trio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ async def foo():
468468
res = subprocess.run(["flake8"], cwd=tmp_path, capture_output=True)
469469
assert not res.stderr
470470
assert res.stdout == (
471-
b"./example.py:5:5: TRIO200: User-configured blocking sync call sync_fns.* "
471+
b"./example.py:5:5: TRIO200 User-configured blocking sync call sync_fns.* "
472472
b"in async function, consider replacing with the_async_equivalent.\n"
473473
)
474474

0 commit comments

Comments
 (0)