Skip to content

Commit 554f076

Browse files
[pre-commit.ci] pre-commit autoupdate (#424)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2](astral-sh/ruff-pre-commit@v0.4.1...v0.4.2) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](pre-commit/mirrors-mypy@v1.9.0...v1.10.0) * chore(lint): apply suggestions --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jérome Eertmans <[email protected]>
1 parent 676acc6 commit 554f076

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ repos:
1919
hooks:
2020
- id: blackdoc
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.4.1
22+
rev: v0.4.2
2323
hooks:
2424
- id: ruff
2525
args: [--fix]
2626
- id: ruff-format
2727
- repo: https://github.com/pre-commit/mirrors-mypy
28-
rev: v1.9.0
28+
rev: v1.10.0
2929
hooks:
3030
- id: mypy
3131
additional_dependencies: [types-requests, types-setuptools]

manim_slides/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def auto_play_media(
498498
el_id = xpath(media.element, ".//p:cNvPr")[0].attrib["id"]
499499
el_cnt = xpath(
500500
media.element.getparent().getparent().getparent(),
501-
'.//p:timing//p:video//p:spTgt[@spid="%s"]' % el_id,
501+
f'.//p:timing//p:video//p:spTgt[@spid="{el_id}"]',
502502
)[0]
503503
cond = xpath(el_cnt.getparent().getparent(), ".//p:cond")[0]
504504
cond.set("delay", "0")

manim_slides/docs/manim_slides_directive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def _write_rendering_stats(scene_name, run_time, file_name):
456456
[
457457
re.sub(r"^(reference\/)|(manim\.)", "", file_name),
458458
scene_name,
459-
"%.3f" % run_time,
459+
f"{run_time:.3f}",
460460
],
461461
)
462462

0 commit comments

Comments
 (0)