Skip to content

Commit 4e4c221

Browse files
[pre-commit.ci] pre-commit autoupdate (#663)
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 6d2521c commit 4e4c221

10 files changed

+19
-21
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
- id: python-no-log-warn
2626
- id: text-unicode-replacement-char
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.8.4
28+
rev: v0.9.2
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff
@@ -59,7 +59,7 @@ repos:
5959
- id: nbstripout
6060
exclude: (docs)
6161
- repo: https://github.com/crate-ci/typos
62-
rev: v1.28.4
62+
rev: dictgen-v0.3.1
6363
hooks:
6464
- id: typos
6565
exclude: (\.ipynb)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test = [
7272
"aiohttp", # For HTTPPath tests.
7373
"coiled",
7474
]
75-
typing = ["mypy>=1.9.0,<1.11", "nbqa[mypy]>=1.8.5"]
75+
typing = ["mypy>=1.9.0,<1.11", "nbqa>=1.8.5"]
7676

7777
[project.urls]
7878
Changelog = "https://pytask-dev.readthedocs.io/en/stable/changes.html"

scripts/update_plugin_list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _version_sort_key(version_string: str) -> packaging.version.Version:
151151
last_release = release_date.strftime("%b %d, %Y")
152152
break
153153

154-
name = f':pypi:`{info["name"]}`'
154+
name = f":pypi:`{info['name']}`"
155155
summary = ""
156156
if info["summary"]:
157157
summary = _escape_rst(info["summary"].replace("\n", ""))

src/_pytask/capture.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ def __repr__(self) -> str:
343343
)
344344

345345
def _assert_state(self, op: str, states: tuple[str, ...]) -> None:
346-
assert (
347-
self._state in states
348-
), "cannot {} in state {!r}: expected one of {}".format(
349-
op, self._state, ", ".join(states)
346+
assert self._state in states, (
347+
"cannot {} in state {!r}: expected one of {}".format(
348+
op, self._state, ", ".join(states)
349+
)
350350
)
351351

352352
def start(self) -> None:
@@ -475,10 +475,10 @@ def __repr__(self) -> str:
475475
)
476476

477477
def _assert_state(self, op: str, states: tuple[str, ...]) -> None:
478-
assert (
479-
self._state in states
480-
), "cannot {} in state {!r}: expected one of {}".format(
481-
op, self._state, ", ".join(states)
478+
assert self._state in states, (
479+
"cannot {} in state {!r}: expected one of {}".format(
480+
op, self._state, ", ".join(states)
481+
)
482482
)
483483

484484
def start(self) -> None:
@@ -620,8 +620,7 @@ def __init__(
620620

621621
def __repr__(self) -> str:
622622
return ( # noqa: UP032
623-
"<MultiCapture out={!r} err={!r} in_={!r} _state={!r} "
624-
"_in_suspended={!r}>"
623+
"<MultiCapture out={!r} err={!r} in_={!r} _state={!r} _in_suspended={!r}>"
625624
).format(
626625
self.out,
627626
self.err,

src/_pytask/collect_utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ def _collect_product(
355355

356356
def create_name_of_python_node(node_info: NodeInfo) -> str:
357357
"""Create name of PythonNode."""
358-
prefix = node_info.task_name if node_info.task_path else node_info.task_name
359-
node_name = prefix + "::" + node_info.arg_name
358+
node_name = node_info.task_name + "::" + node_info.arg_name
360359
if node_info.path:
361360
suffix = "-".join(map(str, node_info.path))
362361
node_name += "::" + suffix

src/_pytask/logging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Add general logging capabilities."""
1+
"""Add general logging capabilities.""" # noqa: A005
22

33
from __future__ import annotations
44

src/_pytask/profile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Contains the code to profile the execution."""
1+
"""Contains the code to profile the execution.""" # noqa: A005
22

33
from __future__ import annotations
44

src/_pytask/traceback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Process tracebacks."""
1+
"""Process tracebacks.""" # noqa: A005
22

33
from __future__ import annotations
44

src/_pytask/typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations
1+
from __future__ import annotations # noqa: A005
22

33
import functools
44
from enum import Enum

src/_pytask/warnings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Contains code for capturing warnings."""
1+
"""Contains code for capturing warnings.""" # noqa: A005
22

33
from __future__ import annotations
44

0 commit comments

Comments
 (0)