mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-19 21:33:29 +08:00
chore(deps): pre-commit autoupdate (#509)
* chore(deps): pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.9.1) - [github.com/pre-commit/mirrors-mypy: v1.14.0 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.0...v1.14.1) * chore(fmt): 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> 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
0483e2f861
commit
4cc6c2865d
@ -21,13 +21,13 @@ repos:
|
|||||||
exclude: poetry.lock
|
exclude: poetry.lock
|
||||||
args: [--autofix, --trailing-commas]
|
args: [--autofix, --trailing-commas]
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.8.4
|
rev: v0.9.1
|
||||||
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.14.0
|
rev: v1.14.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [types-requests, types-setuptools]
|
additional_dependencies: [types-requests, types-setuptools]
|
||||||
|
@ -339,7 +339,7 @@ class ManimSlidesDirective(Directive):
|
|||||||
ref_block = ""
|
ref_block = ""
|
||||||
|
|
||||||
if "quality" in self.options:
|
if "quality" in self.options:
|
||||||
quality = f'{self.options["quality"]}_quality'
|
quality = f"{self.options['quality']}_quality"
|
||||||
else:
|
else:
|
||||||
quality = "example_quality"
|
quality = "example_quality"
|
||||||
frame_rate = QUALITIES[quality]["frame_rate"]
|
frame_rate = QUALITIES[quality]["frame_rate"]
|
||||||
@ -483,7 +483,7 @@ def _log_rendering_times(*args):
|
|||||||
)
|
)
|
||||||
for row in group:
|
for row in group:
|
||||||
print( # noqa: T201
|
print( # noqa: T201
|
||||||
f"{' '*(max_file_length)} {row[2].rjust(7)}s {row[1]}"
|
f"{' ' * (max_file_length)} {row[2].rjust(7)}s {row[1]}"
|
||||||
)
|
)
|
||||||
print("") # noqa: T201
|
print("") # noqa: T201
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ def present( # noqa: C901
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
logger.error(
|
logger.error(
|
||||||
f"Invalid screen number {number}, "
|
f"Invalid screen number {number}, "
|
||||||
f"allowed values are from 0 to {len(screens)-1} (incl.)"
|
f"allowed values are from 0 to {len(screens) - 1} (incl.)"
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -463,13 +463,13 @@ class Player(QMainWindow): # type: ignore[misc]
|
|||||||
def presentation_changed_callback(self) -> None:
|
def presentation_changed_callback(self) -> None:
|
||||||
index = self.current_presentation_index
|
index = self.current_presentation_index
|
||||||
count = self.presentations_count
|
count = self.presentations_count
|
||||||
self.info.scene_label.setText(f"{index+1:4d}/{count:4<d}")
|
self.info.scene_label.setText(f"{index + 1:4d}/{count:4<d}")
|
||||||
|
|
||||||
@Slot()
|
@Slot()
|
||||||
def slide_changed_callback(self) -> None:
|
def slide_changed_callback(self) -> None:
|
||||||
index = self.current_slide_index
|
index = self.current_slide_index
|
||||||
count = self.current_slides_count
|
count = self.current_slides_count
|
||||||
self.info.slide_label.setText(f"{index+1:4d}/{count:4<d}")
|
self.info.slide_label.setText(f"{index + 1:4d}/{count:4<d}")
|
||||||
self.info.slide_notes.setText(self.current_slide_config.notes)
|
self.info.slide_notes.setText(self.current_slide_config.notes)
|
||||||
self.preview_next_slide()
|
self.preview_next_slide()
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ API: str = os.environ.get(MANIM_API, "manim").lower()
|
|||||||
|
|
||||||
if API not in API_NAMES:
|
if API not in API_NAMES:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
f"Specified MANIM_API={API!r} is not in valid options: " f"{API_NAMES}",
|
f"Specified MANIM_API={API!r} is not in valid options: {API_NAMES}",
|
||||||
)
|
)
|
||||||
|
|
||||||
API_NAME = API_NAMES[API]
|
API_NAME = API_NAMES[API]
|
||||||
|
Reference in New Issue
Block a user