mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
LGTM Error Fix (#2001)
* LGTM Error Crush * I'm dumb * fix * Update manim/plugins/import_plugins.py * [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> Co-authored-by: Darylgolden <darylgolden@gmail.com>
This commit is contained in:
parent
0976f23b28
commit
9a98d67dd4
12 changed files with 16 additions and 22 deletions
6
lgtm.yml
Normal file
6
lgtm.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
queries:
|
||||
- exclude: py/init-calls-subclass
|
||||
- exclude: py/unexpected-raise-in-special-method
|
||||
- exclude: py/modification-of-locals
|
||||
- exclude: py/multiple-calls-to-init
|
||||
- exclude: py/missing-call-to-init
|
||||
|
|
@ -1102,8 +1102,7 @@ class ManimConfig(MutableMapping):
|
|||
for qual in constants.QUALITIES:
|
||||
if all([q[k] == constants.QUALITIES[qual][k] for k in keys]):
|
||||
return qual
|
||||
else:
|
||||
return None
|
||||
return None
|
||||
|
||||
@quality.setter
|
||||
def quality(self, qual: str) -> None:
|
||||
|
|
|
|||
|
|
@ -187,8 +187,7 @@ class Camera:
|
|||
for _type in self.display_funcs:
|
||||
if isinstance(mobject, _type):
|
||||
return _type
|
||||
else:
|
||||
raise TypeError(f"Displaying an object of class {_type} is not supported")
|
||||
raise TypeError(f"Displaying an object of class {_type} is not supported")
|
||||
|
||||
def reset_pixel_shape(self, new_height, new_width):
|
||||
"""This method resets the height and width
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ class MappingCamera(Camera):
|
|||
def points_to_pixel_coords(self, points):
|
||||
return super().points_to_pixel_coords(
|
||||
np.apply_along_axis(self.mapping_func, 1, points),
|
||||
)
|
||||
) # TODO: There is an error here, but I don't know how to fix it:
|
||||
# FIXME: Call to method Camera.points_to_pixel_coords with too few arguments; should be no fewer than 3.
|
||||
|
||||
def capture_mobjects(self, mobjects, **kwargs):
|
||||
mobjects = self.get_mobjects_to_display(mobjects, **kwargs)
|
||||
|
|
|
|||
|
|
@ -200,8 +200,8 @@ modify write_cfg_subcmd_input to account for it.""",
|
|||
end="",
|
||||
)
|
||||
temp = input()
|
||||
else:
|
||||
default[key] = temp
|
||||
|
||||
default[key] = temp
|
||||
|
||||
default = replace_keys(default) if category == "logger" else default
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ __all__ = ["AnimatedBoundary", "TracedPath"]
|
|||
|
||||
from typing import Callable, Optional
|
||||
|
||||
import numpy as np
|
||||
from colour import Color
|
||||
|
||||
from .._config import config
|
||||
|
|
|
|||
|
|
@ -46,12 +46,7 @@ from ..utils.exceptions import MultiAnimationOverrideException
|
|||
from ..utils.iterables import list_update, remove_list_redundancies
|
||||
from ..utils.paths import straight_path
|
||||
from ..utils.simple_functions import get_parameters
|
||||
from ..utils.space_ops import (
|
||||
angle_between_vectors,
|
||||
normalize,
|
||||
rotation_matrix,
|
||||
rotation_matrix_transpose,
|
||||
)
|
||||
from ..utils.space_ops import angle_between_vectors, normalize, rotation_matrix
|
||||
from .opengl_compatibility import ConvertToOpenGL
|
||||
|
||||
# TODO: Explain array_attrs
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import math
|
||||
|
||||
import numpy as np
|
||||
|
||||
from ..constants import *
|
||||
|
|
|
|||
|
|
@ -180,7 +180,6 @@ from ...mobject.types.opengl_vectorized_mobject import (
|
|||
OpenGLVGroup,
|
||||
)
|
||||
from ...utils.color import BLACK
|
||||
from ...utils.deprecation import deprecated
|
||||
from ...utils.strings import split_string_list_to_isolate_substrings
|
||||
from ...utils.tex_file_writing import tex_to_svg_file
|
||||
from .style_utils import parse_style
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ from ...mobject.svg.svg_path import SVGPathMobject
|
|||
from ...mobject.types.vectorized_mobject import VectorizedPoint, VGroup
|
||||
from ...utils.color import BLACK, WHITE
|
||||
from ...utils.deprecation import deprecated_params
|
||||
from ...utils.tex import TexTemplate
|
||||
from ...utils.tex_file_writing import tex_to_svg_file
|
||||
from .style_utils import parse_style
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,6 @@ for plugin in pkg_resources.iter_entry_points("manim.plugins"):
|
|||
exec(f"{lst.__name__}=lst")
|
||||
__all__.append(lst.__name__)
|
||||
plugins_requested.remove(plugin.name)
|
||||
else:
|
||||
if plugins_requested != []:
|
||||
logger.warning("Missing Plugins: %s", plugins_requested)
|
||||
|
||||
if plugins_requested != []:
|
||||
logger.warning("Missing Plugins: %s", plugins_requested)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ import os
|
|||
import re
|
||||
from collections import defaultdict
|
||||
from pathlib import Path
|
||||
from posixpath import dirname
|
||||
from textwrap import dedent, indent
|
||||
|
||||
import click
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue