mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d6ea8412d6
commit
51cf463cbe
8 changed files with 6 additions and 5 deletions
|
|
@ -48,7 +48,6 @@ from manim.mobject.geometry.arc import Circle, Dot
|
|||
from manim.mobject.geometry.line import Line
|
||||
from manim.mobject.geometry.polygram import Rectangle
|
||||
from manim.mobject.geometry.shape_matchers import SurroundingRectangle
|
||||
from manim.scene.scene import Scene
|
||||
|
||||
from .. import config
|
||||
from ..animation.animation import Animation
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ __all__ = ["global_options"]
|
|||
|
||||
logger = logging.getLogger("manim")
|
||||
|
||||
|
||||
def validate_gui_location(ctx, param, value):
|
||||
if value:
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ if TYPE_CHECKING:
|
|||
NonTimeBasedUpdater: TypeAlias = Callable[["Mobject"], object]
|
||||
Updater: TypeAlias = NonTimeBasedUpdater | TimeBasedUpdater
|
||||
|
||||
|
||||
class Mobject:
|
||||
"""Mathematical Object: base class for objects that can be displayed on screen.
|
||||
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ class OpenGLVMobject(OpenGLMobject):
|
|||
def _assert_valid_submobjects(self, submobjects: Iterable[OpenGLVMobject]) -> Self:
|
||||
return self._assert_valid_submobjects_internal(submobjects, OpenGLVMobject)
|
||||
|
||||
|
||||
def get_group_class(self) -> type[OpenGLVGroup]: # type: ignore
|
||||
return OpenGLVGroup
|
||||
|
||||
|
|
@ -1358,7 +1357,6 @@ class OpenGLVMobject(OpenGLMobject):
|
|||
new_points = new_bezier_tuples.reshape(-1, 3)
|
||||
return new_points
|
||||
|
||||
|
||||
def interpolate_color(self, mobject1, mobject2, alpha):
|
||||
attrs = [
|
||||
"fill_color",
|
||||
|
|
@ -1387,7 +1385,6 @@ class OpenGLVMobject(OpenGLMobject):
|
|||
setattr(self, attr, getattr(mobject2, attr))
|
||||
continue
|
||||
|
||||
|
||||
attr1 = getattr(mobject1, attr)
|
||||
attr2 = getattr(mobject2, attr)
|
||||
if isinstance(attr1, list) or isinstance(attr2, list):
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ __all__ = [
|
|||
|
||||
import itertools as it
|
||||
import sys
|
||||
import typing
|
||||
from collections.abc import Generator, Hashable, Iterable, Mapping, Sequence
|
||||
from typing import TYPE_CHECKING, Callable, Literal
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ KEYS_TO_FILTER_OUT = {
|
|||
"pixel_array",
|
||||
"pixel_array_to_cairo_context",
|
||||
}
|
||||
|
||||
|
||||
class _Memoizer:
|
||||
"""Implements the memoization logic to optimize the hashing procedure and prevent
|
||||
the circular references within iterable processed.
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ from manim.scene.scene import Scene
|
|||
|
||||
logger = logging.getLogger("manim")
|
||||
|
||||
|
||||
def set_test_scene(scene_object: type[Scene], module_name: str, config):
|
||||
"""Function used to set up the test data for a new feature. This will basically set up a pre-rendered frame for a scene. This is meant to be used only
|
||||
when setting up tests. Please refer to the wiki.
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ def test_dry_run_with_png_format_skipped_animations(config, dry_run):
|
|||
manager = Manager(MyScene)
|
||||
manager.render()
|
||||
|
||||
|
||||
def test_tex_template_file(tmp_path):
|
||||
"""Test that a custom tex template file can be set from a config file."""
|
||||
tex_file = Path(tmp_path / "my_template.tex")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue