Skip to content

Commit 317788e

Browse files
[pre-commit.ci] pre-commit autoupdate (#2406)
1 parent 15926bb commit 317788e

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131

3232
# Autoformat: Python code
3333
- repo: https://github.com/psf/black-pre-commit-mirror
34-
rev: 831207fd435b47aeffdf6af853097e64322b4d44 # frozen: 25.12.0
34+
rev: ea488cebbfd88a5f50b8bd95d5c829d0bb76feb8 # frozen: 26.1.0
3535
hooks:
3636
- id: black
3737
args: [--target-version=py312]
@@ -67,7 +67,7 @@ repos:
6767

6868
# Autoformat: YAML, JSON, Markdown, etc.
6969
- repo: https://github.com/rbubley/mirrors-prettier
70-
rev: 14abee445aea04b39069c19b4bd54efff6775819 # frozen: v3.7.4
70+
rev: c2bc67fe8f8f549cc489e00ba8b45aa18ee713b1 # frozen: v3.8.1
7171
hooks:
7272
- id: prettier
7373

@@ -102,7 +102,7 @@ repos:
102102

103103
# Lint: YAML
104104
- repo: https://github.com/adrienverge/yamllint
105-
rev: 79a6b2b1392eaf49cdd32ac4f14be1a809bbd8f7 # frozen: v1.37.1
105+
rev: cba56bcde1fdd01c1deb3f945e69764c291a6530 # frozen: v1.38.0
106106
hooks:
107107
- id: yamllint
108108
args: ["-d {extends: relaxed, rules: {line-length: disable}}", "-s"]
@@ -136,7 +136,7 @@ repos:
136136

137137
# Strip output from Jupyter notebooks
138138
- repo: https://github.com/kynan/nbstripout
139-
rev: 5023e06554eb1dd9a6dadfd061c36c13b8b11063 # frozen: 0.8.2
139+
rev: 2324c023b7f62a12a1a4c44f5f01702793626dea # frozen: 0.9.0
140140
hooks:
141141
- id: nbstripout
142142

tagging/manifests/build_info.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ def build_info_manifest(config: BuildInfoConfig) -> MarkdownPiece:
4141
"{{.Size}}",
4242
]().rstrip()
4343

44-
build_info = textwrap.dedent(
45-
f"""\
44+
build_info = textwrap.dedent(f"""\
4645
- Build timestamp: {config.build_timestamp}
4746
- Docker image: `{config.full_image()}:{commit_hash_tag}`
4847
- Docker image size: {image_size}
@@ -51,7 +50,6 @@ def build_info_manifest(config: BuildInfoConfig) -> MarkdownPiece:
5150
5251
```text
5352
{{message}}
54-
```"""
55-
).format(message=commit_message)
53+
```""").format(message=commit_message)
5654

5755
return MarkdownPiece(title="## Build Info", sections=[build_info])

tagging/utils/quoted_output.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ def quoted_output(container: Container, cmd: str) -> str:
1616

1717
assert cmd_output, f"Command `{cmd}` returned empty output"
1818

19-
return textwrap.dedent(
20-
f"""\
19+
return textwrap.dedent(f"""\
2120
`{cmd}`:
2221
2322
```text
2423
{{output}}
25-
```"""
26-
).format(output=cmd_output)
24+
```""").format(output=cmd_output)

wiki/update_wiki.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,12 @@ def update_monthly_wiki_page(wiki_dir: Path, build_history_line: str) -> None:
152152
assert build_history_line.startswith("| `")
153153
year_month = build_history_line[3:10]
154154

155-
MONTHLY_PAGE_HEADER = textwrap.dedent(
156-
f"""\
155+
MONTHLY_PAGE_HEADER = textwrap.dedent(f"""\
157156
# Images built during {year_month}
158157
159158
| Date | Image | Links |
160159
| - | - | - |
161-
"""
162-
)
160+
""")
163161
year = year_month[:4]
164162
monthly_page = wiki_dir / "monthly-files" / year / (year_month + ".md")
165163
if not monthly_page.exists():

0 commit comments

Comments
 (0)