Skip to content

Commit 4cc6c28

Browse files
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](astral-sh/ruff-pre-commit@v0.8.4...v0.9.1) - [github.com/pre-commit/mirrors-mypy: v1.14.0 → v1.14.1](pre-commit/mirrors-mypy@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 <[email protected]>
1 parent 0483e2f commit 4cc6c28

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ repos:
2121
exclude: poetry.lock
2222
args: [--autofix, --trailing-commas]
2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.8.4
24+
rev: v0.9.1
2525
hooks:
2626
- id: ruff
2727
args: [--fix]
2828
- id: ruff-format
2929
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.14.0
30+
rev: v1.14.1
3131
hooks:
3232
- id: mypy
3333
additional_dependencies: [types-requests, types-setuptools]

manim_slides/docs/manim_slides_directive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def split_file_cls(arg: str) -> tuple[Path, str]:
339339
ref_block = ""
340340

341341
if "quality" in self.options:
342-
quality = f'{self.options["quality"]}_quality'
342+
quality = f"{self.options['quality']}_quality"
343343
else:
344344
quality = "example_quality"
345345
frame_rate = QUALITIES[quality]["frame_rate"]
@@ -483,7 +483,7 @@ def _log_rendering_times(*args):
483483
)
484484
for row in group:
485485
print( # noqa: T201
486-
f"{' '*(max_file_length)} {row[2].rjust(7)}s {row[1]}"
486+
f"{' ' * (max_file_length)} {row[2].rjust(7)}s {row[1]}"
487487
)
488488
print("") # noqa: T201
489489

manim_slides/present/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def get_screen(number: int) -> Optional[QScreen]:
310310
except IndexError:
311311
logger.error(
312312
f"Invalid screen number {number}, "
313-
f"allowed values are from 0 to {len(screens)-1} (incl.)"
313+
f"allowed values are from 0 to {len(screens) - 1} (incl.)"
314314
)
315315
return None
316316

manim_slides/present/player.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,13 @@ def load_reversed_slide(self) -> None:
463463
def presentation_changed_callback(self) -> None:
464464
index = self.current_presentation_index
465465
count = self.presentations_count
466-
self.info.scene_label.setText(f"{index+1:4d}/{count:4<d}")
466+
self.info.scene_label.setText(f"{index + 1:4d}/{count:4<d}")
467467

468468
@Slot()
469469
def slide_changed_callback(self) -> None:
470470
index = self.current_slide_index
471471
count = self.current_slides_count
472-
self.info.slide_label.setText(f"{index+1:4d}/{count:4<d}")
472+
self.info.slide_label.setText(f"{index + 1:4d}/{count:4<d}")
473473
self.info.slide_notes.setText(self.current_slide_config.notes)
474474
self.preview_next_slide()
475475

manim_slides/slide/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self) -> None:
3535

3636
if API not in API_NAMES:
3737
raise ImportError(
38-
f"Specified MANIM_API={API!r} is not in valid options: " f"{API_NAMES}",
38+
f"Specified MANIM_API={API!r} is not in valid options: {API_NAMES}",
3939
)
4040

4141
API_NAME = API_NAMES[API]

0 commit comments

Comments
 (0)