Skip to content

Commit b593a8a

Browse files
committed
Fix ignores.
1 parent 992abff commit b593a8a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

scripts/svgs/task_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def task_func1():
1010

1111

1212
def task_func2():
13-
print("Debug statement") # noqa: T001
13+
print("Debug statement") # noqa: T201
1414
assert False # noqa: B011, PT015
1515

1616

src/_pytask/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def pytask_parse_config(
200200
callback=convert_truthy_or_falsy_to_bool,
201201
)
202202
if config["debug_pytask"]:
203-
config["pm"].trace.root.setwriter(print) # noqa: T002
203+
config["pm"].trace.root.setwriter(print) # noqa: T202
204204
config["pm"].enable_tracing()
205205

206206
config_from_file["task_files"] = parse_value_or_multiline_option(

tests/test_capture.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def task_show_capture():
6565
# note: py.io capture tests where copied from pylib 1.4.20.dev2 (rev 13d9af95547e)
6666

6767

68-
def StdCaptureFD(
68+
def StdCaptureFD( # noqa: N802
6969
out: bool = True, err: bool = True, in_: bool = True
7070
) -> MultiCapture[str]:
7171
return capture.MultiCapture(
@@ -75,7 +75,7 @@ def StdCaptureFD(
7575
)
7676

7777

78-
def StdCapture(
78+
def StdCapture( # noqa: N802
7979
out: bool = True, err: bool = True, in_: bool = True
8080
) -> MultiCapture[str]:
8181
return capture.MultiCapture(
@@ -85,7 +85,7 @@ def StdCapture(
8585
)
8686

8787

88-
def TeeStdCapture(
88+
def TeeStdCapture( # noqa: N802
8989
out: bool = True, err: bool = True, in_: bool = True
9090
) -> MultiCapture[str]:
9191
return capture.MultiCapture(
@@ -594,9 +594,9 @@ def test_stdin_restored(self):
594594
assert sys.stdin is old
595595

596596
def test_stdin_nulled_by_default(self):
597-
print("XXX this test may well hang instead of crashing")
598-
print("XXX which indicates an error in the underlying capturing")
599-
print("XXX mechanisms")
597+
print("XX this test may well hang instead of crashing")
598+
print("XX which indicates an error in the underlying capturing")
599+
print("XX mechanisms")
600600
with self.getcapture():
601601
pytest.raises(OSError, sys.stdin.read)
602602

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ max-line-length = 88
6464
per-file-ignores =
6565
src/_pytask/hookspecs.py: U100
6666
src/_pytask/outcomes.py: N818
67-
tests/test_capture.py: T000, T001, N802, PT011
67+
tests/test_capture.py: T201, PT011
6868
pytest-mark-no-parentheses = true
6969
warn-symbols =
7070
pytest.mark.wip = Remove 'wip' mark for tests.

0 commit comments

Comments
 (0)