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 @@ -25,7 +25,7 @@ repos:
- id: python-no-log-warn
- id: text-unicode-replacement-char
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.9.2
hooks:
- id: ruff-format
- id: ruff
Expand Down Expand Up @@ -59,7 +59,7 @@ repos:
- id: nbstripout
exclude: (docs)
- repo: https://github.com/crate-ci/typos
rev: v1.28.4
rev: dictgen-v0.3.1
hooks:
- id: typos
exclude: (\.ipynb)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test = [
"aiohttp", # For HTTPPath tests.
"coiled",
]
typing = ["mypy>=1.9.0,<1.11", "nbqa[mypy]>=1.8.5"]
typing = ["mypy>=1.9.0,<1.11", "nbqa>=1.8.5"]

[project.urls]
Changelog = "https://pytask-dev.readthedocs.io/en/stable/changes.html"
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_plugin_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _version_sort_key(version_string: str) -> packaging.version.Version:
last_release = release_date.strftime("%b %d, %Y")
break

name = f':pypi:`{info["name"]}`'
name = f":pypi:`{info['name']}`"
summary = ""
if info["summary"]:
summary = _escape_rst(info["summary"].replace("\n", ""))
Expand Down
19 changes: 9 additions & 10 deletions src/_pytask/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ def __repr__(self) -> str:
)

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

def start(self) -> None:
Expand Down Expand Up @@ -475,10 +475,10 @@ def __repr__(self) -> str:
)

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

def start(self) -> None:
Expand Down Expand Up @@ -620,8 +620,7 @@ def __init__(

def __repr__(self) -> str:
return ( # noqa: UP032
"<MultiCapture out={!r} err={!r} in_={!r} _state={!r} "
"_in_suspended={!r}>"
"<MultiCapture out={!r} err={!r} in_={!r} _state={!r} _in_suspended={!r}>"
).format(
self.out,
self.err,
Expand Down
3 changes: 1 addition & 2 deletions src/_pytask/collect_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ def _collect_product(

def create_name_of_python_node(node_info: NodeInfo) -> str:
"""Create name of PythonNode."""
prefix = node_info.task_name if node_info.task_path else node_info.task_name
node_name = prefix + "::" + node_info.arg_name
node_name = node_info.task_name + "::" + node_info.arg_name
if node_info.path:
suffix = "-".join(map(str, node_info.path))
node_name += "::" + suffix
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Add general logging capabilities."""
"""Add general logging capabilities.""" # noqa: A005

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/profile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Contains the code to profile the execution."""
"""Contains the code to profile the execution.""" # noqa: A005

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/traceback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Process tracebacks."""
"""Process tracebacks.""" # noqa: A005

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations
from __future__ import annotations # noqa: A005

import functools
from enum import Enum
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/warnings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Contains code for capturing warnings."""
"""Contains code for capturing warnings.""" # noqa: A005

from __future__ import annotations

Expand Down
Loading