[pre-commit.ci] pre-commit autoupdate (#369)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.2.0)

* [pre-commit.ci] 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>
This commit is contained in:
pre-commit-ci[bot]
2024-02-06 08:48:42 +01:00
committed by GitHub
parent 92c569950c
commit 0ff1f37475
6 changed files with 11 additions and 1 deletions

View File

@ -19,7 +19,7 @@ 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.1.14 rev: v0.2.0
hooks: hooks:
- id: ruff - id: ruff
args: [--fix] args: [--fix]

View File

@ -174,6 +174,7 @@ Renders as follows:
self.next_slide() self.next_slide()
self.zoom(text) self.zoom(text)
""" # noqa: D400, D415 """ # noqa: D400, D415
from __future__ import annotations from __future__ import annotations

View File

@ -144,6 +144,7 @@ class ManimSlidesMagic(Magics): # type: ignore
In case you want to hide the red box containing the output progress bar, the ``progress_bar`` config In case you want to hide the red box containing the output progress bar, the ``progress_bar`` config
option should be set to ``None``. This can also be done by passing ``--progress_bar None`` as a option should be set to ``None``. This can also be done by passing ``--progress_bar None`` as a
CLI flag. CLI flag.
""" """
if local_ns is None: if local_ns is None:
local_ns = {} local_ns = {}

View File

@ -58,6 +58,7 @@ class Wipe(AnimationGroup): # type: ignore[misc]
self.next_slide() self.next_slide()
self.play(Wipe(circle, square, shift=3 * LEFT)) self.play(Wipe(circle, square, shift=3 * LEFT))
""" """
def __init__( def __init__(
@ -122,6 +123,7 @@ class Zoom(AnimationGroup): # type: ignore[misc]
for i in range(2): for i in range(2):
self.play(Zoom(circles[i], circles[i+1])) self.play(Zoom(circles[i], circles[i+1]))
self.next_slide() self.next_slide()
""" """
def __init__( def __init__(

View File

@ -156,6 +156,7 @@ class BaseSlide:
self.remove_from_canvas("title", "slide_number") self.remove_from_canvas("title", "slide_number")
self.wipe(self.mobjects_without_canvas, []) self.wipe(self.mobjects_without_canvas, [])
""" """
return self._canvas return self._canvas
@ -248,6 +249,7 @@ class BaseSlide:
self.next_slide() self.next_slide()
self.play(FadeOut(circle)) self.play(FadeOut(circle))
""" """
return self._wait_time_between_slides return self._wait_time_between_slides
@ -410,6 +412,7 @@ class BaseSlide:
self.next_slide(notes="Bye bye") self.next_slide(notes="Bye bye")
self.zoom(square) self.zoom(square)
""" """
if self._current_animation > self._start_animation: if self._current_animation > self._start_animation:
if self.wait_time_between_slides > 0.0: if self.wait_time_between_slides > 0.0:
@ -564,6 +567,7 @@ class BaseSlide:
return_animation=True return_animation=True
) )
self.play(anim) self.play(anim)
""" """
from .animation import Wipe from .animation import Wipe
@ -628,6 +632,7 @@ class BaseSlide:
return_animation=True return_animation=True
) )
self.play(anim) self.play(anim)
""" """
from .animation import Zoom from .animation import Zoom

View File

@ -144,6 +144,7 @@ class ThreeDSlide(Slide, ThreeDScene): # type: ignore[misc]
self.next_slide() self.next_slide()
self.play(*[FadeOut(mobject) for mobject in self.mobjects]) self.play(*[FadeOut(mobject) for mobject in self.mobjects])
""" """
pass pass