Skip to content

Commit 8fbd0f6

Browse files
[pre-commit.ci] pre-commit autoupdate (#266)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <[email protected]>
1 parent ff77a47 commit 8fbd0f6

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
- id: rst-inline-touching-normal
3131
- id: text-unicode-replacement-char
3232
- repo: https://github.com/asottile/reorder_python_imports
33-
rev: v3.0.1
33+
rev: v3.1.0
3434
hooks:
3535
- id: reorder-python-imports
3636
args: [--py37-plus, --add-import, 'from __future__ import annotations']
@@ -118,7 +118,7 @@ repos:
118118
args: [--no-build-isolation]
119119
additional_dependencies: [setuptools-scm, toml]
120120
- repo: https://github.com/pre-commit/mirrors-mypy
121-
rev: 'v0.942'
121+
rev: 'v0.950'
122122
hooks:
123123
- id: mypy
124124
args: [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ features include:
4242
[LaTeX](https://github.com/pytask-dev/pytask-latex),
4343
[R](https://github.com/pytask-dev/pytask-r), and
4444
[Stata](https://github.com/pytask-dev/pytask-stata) and more can be found
45-
[here](https://github.com/topics/pytask). Learn more about plungins in
45+
[here](https://github.com/topics/pytask). Learn more about plugins in
4646
[this tutorial](https://pytask-dev.readthedocs.io/en/stable/tutorials/plugins.html).
4747

4848
# Installation

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)