Skip to content

Commit cda304f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3e6c562 commit cda304f

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

manim_slides/manim.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from importlib.util import find_spec
21
import sys
2+
from importlib.util import find_spec
33

44
MANIM_PACKAGE_NAME = "manim"
55
MANIM_AVAILABLE = find_spec(MANIM_PACKAGE_NAME) is not None
@@ -11,7 +11,10 @@
1111

1212
if MANIM_IMPORTED and MANIMGL_IMPORTED:
1313
from manim import logger
14-
logger.warn("Both manim and manimgl are installed, therefore `manim-slide` needs to need which one to use. Please only import one of the two modules so that `manim-slide` knows which one to use. Here, manim is used by default")
14+
15+
logger.warn(
16+
"Both manim and manimgl are installed, therefore `manim-slide` needs to need which one to use. Please only import one of the two modules so that `manim-slide` knows which one to use. Here, manim is used by default"
17+
)
1518
MANIM = True
1619
MANIMGL = False
1720
elif MANIM_AVAILABLE and not MANIMGL_IMPORTED:
@@ -21,7 +24,9 @@
2124
MANIM = False
2225
MANIMGL = True
2326
else:
24-
raise ImportError("Either manim (community) or manimgl (3b1b) package must be installed")
27+
raise ImportError(
28+
"Either manim (community) or manimgl (3b1b) package must be installed"
29+
)
2530

2631

2732
FFMPEG_BIN = None

manim_slides/present.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,16 @@ def value_proc(value: str):
377377
indices = list(map(int, value.strip().replace(" ", "").split(",")))
378378

379379
if not all(map(lambda i: 0 < i <= len(scene_choices), indices)):
380-
raise click.UsageError("Please only enter numbers displayed on the screen.")
380+
raise click.UsageError(
381+
"Please only enter numbers displayed on the screen."
382+
)
381383

382384
return [scene_choices[i] for i in indices]
383385

384386
if len(scene_choices) == 0:
385-
raise click.UsageError("No scenes were found, are you in the correct directory?")
387+
raise click.UsageError(
388+
"No scenes were found, are you in the correct directory?"
389+
)
386390

387391
while True:
388392
try:

0 commit comments

Comments
 (0)