Skip to content

Commit bab03f0

Browse files
[pre-commit.ci] pre-commit autoupdate (#34)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.1 → v0.9.4](astral-sh/ruff-pre-commit@v0.6.1...v0.9.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 1c793ff commit bab03f0

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.6.0
6+
rev: v5.0.0
77
hooks:
88
- id: check-merge-conflict
99
- id: check-added-large-files
@@ -12,7 +12,7 @@ repos:
1212
# Run ruff to lint and format
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
1414
# Ruff version.
15-
rev: v0.6.1
15+
rev: v0.9.4
1616
hooks:
1717
# Run the linter.
1818
- id: ruff

reporter/components/footer.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
def text() -> str:
1717
"""Subtext for the comment."""
1818
hash_feature = (
19-
f"([{HASH_FEAT_SHORT}]({DOMAIN}/" f"{OWNER}/{REPO}/commits/{HASH_FEAT})) "
20-
)
21-
hash_main = (
22-
f"([{HASH_MAIN_SHORT}]({DOMAIN}/" f"{OWNER}/{REPO}/commits/{HASH_MAIN}))"
19+
f"([{HASH_FEAT_SHORT}]({DOMAIN}/{OWNER}/{REPO}/commits/{HASH_FEAT})) "
2320
)
21+
hash_main = f"([{HASH_MAIN_SHORT}]({DOMAIN}/{OWNER}/{REPO}/commits/{HASH_MAIN}))"
2422
time = (
2523
pd.Timestamp.now()
2624
.tz_localize("UTC")

reporter/components/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ def plots_table() -> str:
3535

3636
def text() -> str:
3737
"""Body text for general component."""
38-
return f"**General**\n" f"{create_details_block('Plots comparison', plots_table())}"
38+
return f"**General**\n{create_details_block('Plots comparison', plots_table())}"

reporter/components/utils.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
def create_details_block(summary: str, content: Any) -> str:
55
"""Wrap content in a details block (if content is not empty)."""
66
if content:
7-
return (
8-
f"<details>\n"
9-
f" <summary>{summary}</summary>\n"
10-
f"{content}"
11-
f"</details>\n"
12-
f"\n"
13-
f"\n"
14-
)
7+
return f"<details>\n <summary>{summary}</summary>\n{content}</details>\n\n\n"
158
else:
169
return ""

0 commit comments

Comments
 (0)