pre-commit-ci[bot]
3ea23e9cd0
[pre-commit.ci] pre-commit autoupdate ( #4405 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.8 → v0.12.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.8...v0.12.9 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-18 21:09:36 +02:00
Benjamin Hackl
7e2ea86e98
Fix some config options specified via --config_file not being respected properly ( #4401 )
2025-08-17 09:40:38 -04:00
Henrik Skov Midtiby
6b668784f2
Add type annotations to moving_camera.py ( #4397 )
2025-08-13 18:33:51 -04:00
Henrik Skov Midtiby
dd91a8a2ee
Simplify the function remove_invisible_chars in text_mobject.py ( #4394 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-13 15:01:20 +00:00
Henrik Skov Midtiby
ec306075a9
Add type annotations to opengl_geometry.py ( #4396 )
2025-08-13 10:29:45 -04:00
Benjamin Hackl
2d3aa0d2f4
Ensure leading whitespace does not change line height for lines in CodeMobject ( #4392 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-12 21:38:42 -04:00
Francisco Manríquez Novoa
a56c06cd51
Rename types like RGBA_Array_Float to FloatRGBA and add types like FloatRGBA_Array ( #4386 )
...
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2025-08-12 10:37:59 -04:00
Henrik Skov Midtiby
03a94141d2
Add type annotations to text_mobject.py ( #4381 )
...
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2025-08-11 21:16:39 +00:00
Henrik Skov Midtiby
5a2b3384f1
Rewrite color_gradient to always return a list of ManimColors ( #4380 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-11 15:15:38 -04:00
nubDotDev
c4dc0ea86d
Allow passing a tuple to buff in SurroundingRectangle to specify buffer in x and y direction independently ( #4390 )
...
* Give SurroundingRectangle 2D buffer
* add test for SurroundingRectangle buff parameter
---------
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2025-08-11 20:20:57 +02:00
pre-commit-ci[bot]
e822de0315
[pre-commit.ci] pre-commit autoupdate ( #4391 )
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0 )
- [github.com/astral-sh/ruff-pre-commit: v0.12.7 → v0.12.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.7...v0.12.8 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-11 20:18:58 +02:00
F. Muenkel
f69f2545d9
Rename SceneFileWriter.save_final_image() to save_image() ( #4378 )
...
* Rename save_final_image() to save_image()
* Rename SceneFileWriter.save_final_image() to save_image() and fix
docstring
* fix some type annotations
* make docstrings consistent
* Update manim/scene/scene_file_writer.py
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
---------
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-11 18:59:48 +02:00
F. Muenkel
48d5a36aad
Typing opengl_renderer_window.py ( #4363 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
Co-authored-by: Francisco Manríquez <francisco.manriquezn@usm.cl>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2025-08-09 17:11:41 -04:00
Francisco Manríquez Novoa
05cc414014
Refactor imports from collections.abc, typing and typing_extensions for Python 3.9 ( #4353 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-09 17:51:30 +00:00
Francisco Manríquez Novoa
b3df1cf79e
Properly define init_points methods ( #4360 )
2025-08-09 19:28:20 +02:00
nubDotDev
cb8af6f2d0
Bevel cube corners ( #4361 )
...
* Fixed surface animations in OpenGL
* bevel cube joints
2025-08-09 19:24:37 +02:00
Benjamin Hackl
d8a7e55ee1
Exclude check for cyclic imports by CodeQL ( #4384 )
...
* exclude check for cyclic imports by CodeQL
* also exclude py/unsafe-cyclic-import
2025-08-09 19:22:07 +02:00
pre-commit-ci[bot]
2d8d81c209
[pre-commit.ci] pre-commit autoupdate ( #4204 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.0 → v0.12.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.0...v0.12.7 )
- [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.17.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v1.17.1 )
* Fix errors
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
2025-08-09 17:23:28 +02:00
Kabilan
fc68c10433
Add info-level logging for config files read and enhance output ( #4375 )
...
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2025-08-07 20:24:59 +00:00
Henrik Skov Midtiby
d0521fa06d
Add type annotations to movement.py ( #4371 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-06 17:52:16 -04:00
Henrik Skov Midtiby
e339a68e54
Add type annotations to growing.py ( #4368 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-06 21:21:57 +00:00
Henrik Skov Midtiby
c887b51d63
Add type annotations to composition.py ( #4366 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-06 20:38:59 +00:00
Henrik Skov Midtiby
ded54e41ae
Add type annotations to indication.py ( #4367 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-08-06 13:54:36 +00:00
Benjamin Hackl
04503adb70
Fix Sphinx exceptions when trying to build documentation via latex / as pdf ( #4370 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-06 08:43:50 -04:00
Henrik Skov Midtiby
9c9ebf428e
Add type annotations to dot_cloud.py, vectorized_mobject_rendering.py and opengl_three_dimensions.py ( #4359 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-01 11:07:09 -04:00
Francisco Manríquez Novoa
d18dc8f89b
Add VectorNDLike type aliases ( #4068 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-01 04:31:30 +00:00
Henrik Skov Midtiby
7eb88562c2
Add type annotations for most of camera and mobject.graphing ( #4125 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-01 00:59:29 +00:00
F. Muenkel
aa0cd4fe82
Add type hints to scene_file_writer.py, section.py, and zoomed_scene.py ( #4133 )
...
* Add type hints to scene/scene_file_write.py
* Add type hints to scene/scene_file_write.py
* Add type hints to scene/section.py
* Add type hints to scene/zoomed_scene.py
* Add type hints to scene/moving_camera_scene.py
* Fix typing of variable scene_name
* Fix typing
* Fix one more type hint
2025-07-30 08:52:22 -04:00
Henrik Skov Midtiby
a9b65eed5f
Revert change of default value ( #4358 )
2025-07-29 10:09:21 -04:00
Henrik Skov Midtiby
dba6fa8f99
Add type annotations to three_d_camera.py ( #4356 )
...
* Adding type annotations to three_d_camera.py
* Suggestions from Chopan50
* Removed a comment.
---------
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-29 13:09:55 +00:00
Henrik Skov Midtiby
df36f4f196
Add type annotations to tex_mobject.py ( #4355 )
...
* Starting to work on type annotations for tex_mobject.py
* More work
* Finished.
* Code cleanup.
* ...
* Removed the ignore errors line in mypy for tex_mobject
* Fix typing of colors
---------
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-29 12:32:23 +00:00
Francisco Manríquez Novoa
7ea765a759
Optimize Mobject.become() ( #4357 )
2025-07-29 07:57:02 -04:00
Henrik Skov Midtiby
21fe73b5c2
Add type annotations to manim/renderer/shader.py ( #4350 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-27 23:14:41 +00:00
F. Muenkel
088affd876
Fix typo in import of OpenGLCamera ( #4352 )
2025-07-26 18:08:15 +00:00
F. Muenkel
c7ff795c0a
Add support for arithmetic operators //, %, *, ** and / on `ValueTracker` ( #4351 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-26 17:45:05 +00:00
Irvanal Haq
dea245ad9a
Fix duplicate references in Scene.mobjects after ReplacementTransform with existing target mobject ( #4242 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-26 01:30:54 +00:00
F. Muenkel
a8c16fbfb1
Add type hints to mobject/value_tracker.py ( #4129 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-25 21:25:01 +00:00
gui martins
83d4301184
Add docstrings for ChangingDecimal and ChangeDecimalToValue ( #4346 )
...
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-25 16:43:19 +00:00
nubDotDev
b65b0f2470
Fixed surface animations in OpenGL ( #4286 )
2025-07-25 15:40:52 +00:00
Abhilasha Tandon
4ddf77739d
Include Text.gradient in hash to properly regenerate Text when its gradient changes ( #4099 )
...
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-25 15:13:09 +00:00
Francisco Manríquez Novoa
e73b6590dd
Add classes MethodWithArgs, SceneInteractContinue and SceneInteractRerun inside new module manim.data_structures ( #4315 )
...
* Add classes MethodWithArgs, SceneInteractRerun and SceneInteractExit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add missing manim.data_structures file
* Rename SceneInteractExit to SceneInteractContinue and use dataclasses
* Revert using @dataclass(slots=True), because Python 3.9 does not support it
* Change order of dataclasses
* Add references to Scene.queue in docstrings
* Include data_structures in utilities_misc.rst
* Use qualified names and mark strings as code in data_structures.py
* Add module docstring to data_structures.py
* Move Scene.interact() objects from data_structures.py into scene.py
* Use qualified name in SceneInteractAction docstring
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-25 00:37:14 +02:00
Henrik Skov Midtiby
fd8ab62613
Fix BraceLabel.change_label() and document BraceText ( #4347 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-24 22:09:02 +00:00
Henrik Skov Midtiby
047db453ff
Add type annotations to mobject/svg/brace.py ( #4309 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-24 21:37:43 +00:00
Luka Rahne
2f02eb9328
Fix Prism rendering with wrong dimensions in OpenGL ( #4003 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-07-24 20:44:25 +00:00
dependabot[bot]
c1663f1a1e
Bump astral-sh/setup-uv from 5 to 6 ( #4234 )
...
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 5 to 6.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-21 17:55:33 +02:00
NASAnerd05
2790a70bc5
Improved readability, grammar, as well as added docstrings for consistency ( #4267 )
...
* Improve MappingCamera, MovingCamera, Rotation, CliColors, and _init_.py readability and docstrings
* Readibility and docsstrings
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Apply suggestion from @behackl
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2025-07-20 14:33:45 +02:00
Henrik Skov Midtiby
fdb5cb9f04
Add typing annotations to svg_mobject.py ( #4318 )
...
* Add typing annotations to svg_mobject.py
* Added ignore statements in four locations.
* cleanly resolve non-None stroke_width in svg_mobject
* revert clean solution (???)
---------
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2025-07-20 14:17:40 +02:00
Francisco Manríquez Novoa
ec501b960c
Remove manim.gui and move configure_pygui into Scene as a method ( #4314 )
2025-07-20 13:22:24 +02:00
Henrik Skov Midtiby
e54113e263
Handling typing errors in text/numbers.py ( #4317 )
2025-07-20 12:51:59 +02:00
Henrik Skov Midtiby
b83410aee0
Ensure that the stroke_width property of SVGMobject is not set to None. ( #4319 )
...
This change fixes issue 4311.
2025-07-20 12:36:09 +02:00