Skip to content

Commit 57deb27

Browse files
[pre-commit.ci] pre-commit autoupdate (#941)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.1 → v0.15.2](astral-sh/ruff-pre-commit@v0.15.1...v0.15.2) * [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 569f761 commit 57deb27

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.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.15.1
3+
rev: v0.15.2
44
hooks:
55
- id: ruff
66
name: ruff lint

src/executorlib/task_scheduler/interactive/dependency_plot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ def _short_object_name(node):
326326
}
327327
)
328328
elif "object at" in node_value_str:
329-
short_name = node_value_str[1:-1].split(maxsplit=1)[0].split(".")[-1] + "()"
329+
short_name = (
330+
node_value_str[1:-1].split(maxsplit=1)[0].rsplit(".", maxsplit=1)[-1] + "()"
331+
)
330332
elif "<function" in node_value_str:
331333
short_name = node_value_str.split()[1] + "()"
332334
elif "\n" in node_value_str:

0 commit comments

Comments
 (0)