mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-22 01:44:51 +08:00
[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](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.1...v0.4.2) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/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 <jeertmans@icloud.com>
This commit is contained in:
![66853113+pre-commit-ci[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
676acc6e3b
commit
554f076a25
@ -19,13 +19,13 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: blackdoc
|
- id: blackdoc
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.4.1
|
rev: v0.4.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.9.0
|
rev: v1.10.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [types-requests, types-setuptools]
|
additional_dependencies: [types-requests, types-setuptools]
|
||||||
|
@ -498,7 +498,7 @@ class PowerPoint(Converter):
|
|||||||
el_id = xpath(media.element, ".//p:cNvPr")[0].attrib["id"]
|
el_id = xpath(media.element, ".//p:cNvPr")[0].attrib["id"]
|
||||||
el_cnt = xpath(
|
el_cnt = xpath(
|
||||||
media.element.getparent().getparent().getparent(),
|
media.element.getparent().getparent().getparent(),
|
||||||
'.//p:timing//p:video//p:spTgt[@spid="%s"]' % el_id,
|
f'.//p:timing//p:video//p:spTgt[@spid="{el_id}"]',
|
||||||
)[0]
|
)[0]
|
||||||
cond = xpath(el_cnt.getparent().getparent(), ".//p:cond")[0]
|
cond = xpath(el_cnt.getparent().getparent(), ".//p:cond")[0]
|
||||||
cond.set("delay", "0")
|
cond.set("delay", "0")
|
||||||
|
@ -456,7 +456,7 @@ def _write_rendering_stats(scene_name, run_time, file_name):
|
|||||||
[
|
[
|
||||||
re.sub(r"^(reference\/)|(manim\.)", "", file_name),
|
re.sub(r"^(reference\/)|(manim\.)", "", file_name),
|
||||||
scene_name,
|
scene_name,
|
||||||
"%.3f" % run_time,
|
f"{run_time:.3f}",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user