Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
rev: v3.1.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
Expand Down Expand Up @@ -118,7 +118,7 @@ repos:
args: [--no-build-isolation]
additional_dependencies: [setuptools-scm, toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.942'
rev: 'v0.950'
hooks:
- id: mypy
args: [
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ features include:
[LaTeX](https://github.com/pytask-dev/pytask-latex),
[R](https://github.com/pytask-dev/pytask-r), and
[Stata](https://github.com/pytask-dev/pytask-stata) and more can be found
[here](https://github.com/topics/pytask). Learn more about plungins in
[here](https://github.com/topics/pytask). Learn more about plugins in
[this tutorial](https://pytask-dev.readthedocs.io/en/stable/tutorials/plugins.html).

# Installation
Expand Down
2 changes: 1 addition & 1 deletion scripts/svgs/task_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def task_func1():


def task_func2():
print("Debug statement") # noqa: T001
print("Debug statement") # noqa: T201
assert False # noqa: B011, PT015


Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def pytask_parse_config(
callback=convert_truthy_or_falsy_to_bool,
)
if config["debug_pytask"]:
config["pm"].trace.root.setwriter(print) # noqa: T002
config["pm"].trace.root.setwriter(print) # noqa: T202
config["pm"].enable_tracing()

config_from_file["task_files"] = parse_value_or_multiline_option(
Expand Down
12 changes: 6 additions & 6 deletions tests/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def task_show_capture():
# note: py.io capture tests where copied from pylib 1.4.20.dev2 (rev 13d9af95547e)


def StdCaptureFD(
def StdCaptureFD( # noqa: N802
out: bool = True, err: bool = True, in_: bool = True
) -> MultiCapture[str]:
return capture.MultiCapture(
Expand All @@ -75,7 +75,7 @@ def StdCaptureFD(
)


def StdCapture(
def StdCapture( # noqa: N802
out: bool = True, err: bool = True, in_: bool = True
) -> MultiCapture[str]:
return capture.MultiCapture(
Expand All @@ -85,7 +85,7 @@ def StdCapture(
)


def TeeStdCapture(
def TeeStdCapture( # noqa: N802
out: bool = True, err: bool = True, in_: bool = True
) -> MultiCapture[str]:
return capture.MultiCapture(
Expand Down Expand Up @@ -594,9 +594,9 @@ def test_stdin_restored(self):
assert sys.stdin is old

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

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ max-line-length = 88
per-file-ignores =
src/_pytask/hookspecs.py: U100
src/_pytask/outcomes.py: N818
tests/test_capture.py: T000, T001, N802, PT011
tests/test_capture.py: T201, PT011
pytest-mark-no-parentheses = true
warn-symbols =
pytest.mark.wip = Remove 'wip' mark for tests.
Expand Down