Skip to content

Commit 3ef0ba9

Browse files
[pre-commit.ci] pre-commit autoupdate (#904)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](astral-sh/ruff-pre-commit@v0.14.14...v0.15.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0ebd469 commit 3ef0ba9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.14.14
3+
rev: v0.15.0
44
hooks:
55
- id: ruff
66
name: ruff lint

src/executorlib/task_scheduler/interactive/dependency_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,13 @@ def _short_object_name(node):
326326
}
327327
)
328328
elif "object at" in node_value_str:
329-
short_name = node_value_str[1:-1].split()[0].split(".")[-1] + "()"
329+
short_name = node_value_str[1:-1].split(maxsplit=1)[0].split(".")[-1] + "()"
330330
elif "<function" in node_value_str:
331331
short_name = node_value_str.split()[1] + "()"
332332
elif "\n" in node_value_str:
333333
short_name = str(type(node)).split("'")[1].split(".")[-1] + "()"
334334
elif "(" in node_value_str and ")" in node_value_str:
335-
short_name = node_value_str.split("(")[0] + "()"
335+
short_name = node_value_str.split("(", maxsplit=1)[0] + "()"
336336
elif len(node_value_str) > 20:
337337
short_name = node_value_str[:21] + "..."
338338
else:

0 commit comments

Comments
 (0)