Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 3e0a296 commit 0795570
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
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

0 comments on commit 0795570

Please sign in to comment.