Commit graph

22 commits

Author SHA1 Message Date
Darylgolden
6018ebf445 Revert "Merge branch 'main' of https://github.com/ManimCommunity/manim"
This reverts commit e7f9d23aa7, reversing
changes made to afe91d02b6.
2023-07-31 15:29:39 +08:00
Hugues Devimeux
2044ef8abc
Removed unused `GraphicalUnitTester` (#3054)
* Removed graphicalUnitTester

* Removed reference about it in teh docs
2022-11-30 22:10:13 +01:00
NotWearingPants
95bca6f24b
Convert all types of parameters in docstrings to proper type annotations (#2988)
* Converted types in docstrings to type annotations

* `isort .`

* `black .`

* Additional docstrings type annotation fixes

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2022-11-10 07:17:21 +01:00
Jonathan Alpert
7a13f0e969
Migrate from os.path to pathlib in Testing Scripts (#2685)
* updated styling

* final commit

* fixed style

* removed exist_ok=true

* added parents=True

* potentially .exists() is the problem

* fixed style'

* fixed style on revisions

* style check processed

* Update tests/helpers/graphical_units.py

Co-authored-by: ad_chaos <90276965+Kiran-Raj-Dev@users.noreply.github.com>

* fixed changes

* made get_dir_layout also accept path.

* removed small auto import error

Co-authored-by: ad_chaos <90276965+Kiran-Raj-Dev@users.noreply.github.com>
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
2022-04-24 10:48:11 +00:00
GameDungeon
daf23c9d10
Upgraded typehints (#2429)
* Future Annotations

* Delete template_twitter_post.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Apply suggestions from code review

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fixed broken RTD

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-20 12:26:21 +08:00
GameDungeon
c4217731e0
Added MyPy Support (#1972)
* MyPy Support

* MyPy Hook

* Removing MyPy Hook

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Delete __init__.pyi

* Delete color.pyi

* Update .mypy.ini

Co-authored-by: Christopher Besch <christopher.besch@gmx.de>

* changes

* quick fix

* MyPy Hook

* MyPy Hook

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christopher Besch <christopher.besch@gmx.de>
2022-01-03 19:41:07 +08:00
GameDungeon
94821c10d8
Flake8 Changes + Fixing Warnings (#1968)
* Warning Removal

* Flake Stuff

* HotFix

* Docs Fix

* I'm Dumb

* Docs Fix 2

* Fixing Github Requests

* Fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* quick fix

* Add Deprecation Warning

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Weird Pre Commit Stuff

* Quick Fix

* Quick Fix

* Fix

* Flake Fix

* [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>
2021-09-03 13:45:48 -04:00
Devin Neal
d37481669c Merge commit '9a525a81' into opengl-tex 2021-04-09 19:19:19 -07:00
Mark Miller
99de10f61d
Reorder red/green layers in the graphical unit test (#1299) 2021-04-10 00:26:28 +05:30
Devin Neal
358d175e7b Replace use_opengl_renderer with renderer = opengl 2021-04-07 18:13:37 -07:00
Naveen M K
dcb90a8656
Format Imports using Isort (#1178)
* Format imports using Isort.
Add a check for pull requests.

Signed-off-by: Naveen M K <naveen@syrusdark.website>

* CI: update check's name
2021-04-03 13:45:12 +05:30
Mark Miller
d8d9a01b9a
Enable CI testing for OpenGL (#1160)
* add simple circle test for opengl

* literally a comma

* add rgb tolerance to graphical unit tester

* start up xvfb on ubuntu?

* black style

* reduce tolerance to pixel ?

* add msys2 action

* add mesa install

* ci: windows add msys2 to path
Compile moderngl from source
add a init tests for CI to work
add colour to pytest

* minor edits

* mild refactor of scene / camera / renderer relationship

* flake-d

* reverted refactor

* reverted opengl split at the level of graphical unit tester

* remove unnecessary config in definition

* CI: remove python3 from MSYS2 also

Co-authored-by: Naveen M K <naveen@syrusdark.website>
2021-03-28 22:09:29 +02:00
kolibril13
691db1e461
Run proofreading over the whole library (#890) 2021-01-01 17:59:12 +01:00
Philipp Imhof
1b57ef38a0
Remove old str.format() syntax and change to f-Strings (#867)
* Changing old str.format() to f-Strings

* Fixed mistake

* Line too long

* str(...) is not needed in f-string

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2020-12-20 17:46:34 +01:00
Aron
68e66dccf5
remove all CONFIG and all digest_config (#783)
* remove CONFIG and digest_config

* docstring fix - arrow tips have length, not tip_length

* fix divide by zero as per issue 780

* Update manim/mobject/geometry.py

Co-authored-by: kolibril13 <44469195+kolibril13@users.noreply.github.com>

* black, what else

Co-authored-by: leotrs <leo@leotrs.com>
Co-authored-by: Aron <co-bordism@gitlab / cobordism@github>
Co-authored-by: kolibril13 <44469195+kolibril13@users.noreply.github.com>
2020-12-03 17:19:57 +05:30
Leo Torres
f377481096
Refactor skip animations (#696)
* refactor: make skip_animations an instance attribute of Renderer instead of a config option
* Changes from @huguesdevimeux
2020-11-19 12:39:21 -05:00
leotrs
45980e56fc added new test and fixed a couple of things with deepcopy 2020-10-28 14:18:22 -04:00
leotrs
12e1e528eb merge master 2020-10-26 17:46:00 -04:00
leotrs
70649b79ac use the new "quality" config option 2020-10-25 23:00:01 -04:00
leotrs
6e0ba47a1e change every mention of file_writer_config to config. Also some tweaks to ManimConfig 2020-10-14 22:08:00 -04:00
Devin Neal
41f6f054e0
Add interface to JS renderer (#465)
* Add interface to JS renderer

* Update manim_directive.py

* Add simple flag to get_style()

* Change add_frames to add_frame

* Update changelog.rst
2020-10-04 18:49:01 -07:00
Hugues Devimeux
a623a9e4c3
Refactored tests and added new tests tools for videos-tests. (#335)
* Refactored file architecture of graphical tests

* removed tests_cache now useless

* added show_diff helper flag

* updated test data for TextMobjecttest

* refactored set_test_scene

* removed useless imports

* added video comparison tools

* improved tests helpers for devs

* added small video tests (provisionnal)

* small changes and cleanup

* RUN BLACK SIR YES SIR

* removed unused imports

* improved docs

* Apply suggestions from code review

Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* updated tests from master.

* RUN BLACK SIR YES SIR

* fixed logging tests

* fixed test name

* rgb(0,0,0)

* fixed tests

* changed .npy data to fix test (hopefully)

* removed bad control data.

* aaand re added control data

* Regenerate Reference data for TextMobject and Text tests.

* Turn off fast-failing to see if tests pass anywhere

* Use shell mode for logging test.
(Fixes the failing logging test)

* Merge branch 'master' into refactor-tests

* Add OS Specific control data for Tex[t] tests on MacOS, Windows

* Use old TextMobject reference data.

* Add reference data for Linux.

* Use reference data from Ubuntu for Linux tests.

* Use @CorvidCanine's Text data and @leotrs's Tex[t]Mobject data.

* removed hash comparison in video tests.

* updated control data

* updated helpers

* removed useless comment

* removed test_writing

* updated tests

* renamed tests

* fixed tests

* Re-add fail-fast

* Apply suggestions from code review

Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>

* small docs mistake

* Update tests/utils/video_tester.py

Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>

Co-authored-by: Leo Torres <dleonardotn@gmail.com>
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
Co-authored-by: Hugues Devimeux <hugues.devimeux@gmail.com>
Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>
2020-09-01 23:12:39 +02:00
Renamed from tests/testing_utils.py (Browse further)