Skip to content

Commit 68352d6

Browse files
[pre-commit.ci] pre-commit autoupdate (#710)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.4](astral-sh/ruff-pre-commit@v0.14.14...v0.15.4) * [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 d7012c4 commit 68352d6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
- id: trailing-whitespace
2929

3030
- repo: https://github.com/astral-sh/ruff-pre-commit
31-
rev: v0.14.14
31+
rev: v0.15.4
3232
hooks:
3333
- id: ruff
3434
args: ["--fix", "--show-fixes"]

myst_nb/ext/execution_tables.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def run(self, **kwargs) -> None:
9494
}
9595

9696
_key2transform: dict[str, Callable[[Any], str]] = {
97-
"mtime": lambda x: datetime.fromtimestamp(x).strftime("%Y-%m-%d %H:%M")
98-
if x
99-
else "",
97+
"mtime": lambda x: (
98+
datetime.fromtimestamp(x).strftime("%Y-%m-%d %H:%M") if x else ""
99+
),
100100
"method": str,
101101
"runtime": lambda x: "-" if x is None else str(round(x, 2)),
102102
"succeeded": lambda x: "✅" if x is True else "❌",

0 commit comments

Comments
 (0)