Skip to content

Commit 859d48a

Browse files
[pre-commit.ci] pre-commit autoupdate (#270)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.7.0 → 23.9.1](psf/black@23.7.0...23.9.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.287 → v0.0.288](astral-sh/ruff-pre-commit@v0.0.287...v0.0.288) * [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>
1 parent 9a23296 commit 859d48a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ repos:
2020
exclude: poetry.lock
2121
args: [--autofix]
2222
- repo: https://github.com/psf/black
23-
rev: 23.7.0
23+
rev: 23.9.1
2424
hooks:
2525
- id: black
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.0.287
27+
rev: v0.0.288
2828
hooks:
2929
- id: ruff
3030
args: [--fix]

docs/source/reference/examples.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,22 @@ directly write the `construct` method in the body of `MovingCameraSlide`.
132132
133133
from manim import *
134134
from manim_slides import Slide
135-
136-
135+
136+
137137
class MovingCameraSlide(Slide, MovingCameraScene):
138138
pass
139-
139+
140140
class SubclassExample(MovingCameraSlide):
141141
def construct(self):
142142
self.camera.frame.save_state()
143-
143+
144144
ax = Axes(x_range=[-1, 10], y_range=[-1, 10])
145145
graph = ax.plot(lambda x: np.sin(x), color=WHITE, x_range=[0, 3 * PI])
146-
146+
147147
dot_1 = Dot(ax.i2gp(graph.t_min, graph))
148148
dot_2 = Dot(ax.i2gp(graph.t_max, graph))
149149
self.add(ax, graph, dot_1, dot_2)
150-
150+
151151
self.play(self.camera.frame.animate.scale(0.5).move_to(dot_1))
152152
self.next_slide()
153153
self.play(self.camera.frame.animate.move_to(dot_2))

0 commit comments

Comments
 (0)