diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ddf53856..c0011c1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,13 +21,13 @@ repos: exclude: uv.lock args: [--autofix, --trailing-commas] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.4 + rev: v0.16.5 hooks: - id: ruff args: [--fix] - id: ruff-format - repo: https://github.com/astral-sh/ty-pre-commit - rev: v0.0.74 + rev: v0.0.76 hooks: - id: ty args: [--isolated, --frozen, --no-default-groups, --group=typechecking] diff --git a/docs/source/reference/large_presentation_tips.md b/docs/source/reference/large_presentation_tips.md index e3b1d729..82804344 100644 --- a/docs/source/reference/large_presentation_tips.md +++ b/docs/source/reference/large_presentation_tips.md @@ -53,18 +53,15 @@ from manim_slides import Slide class Introduction(Slide): - def construct(self): - ... + def construct(self): ... class ExplainConcepts(Slide): - def construct(self): - ... + def construct(self): ... class ShowResults(Slide): - def construct(self): - ... + def construct(self): ... ``` Each class can now be rendered independently from the command line. When you @@ -179,7 +176,8 @@ def render_worker(args): logger.info(f"Command is {cmd}") try: result = subprocess.run( - cmd, shell=True, check=True, text=True, stdout=subprocess.DEVNULL) + cmd, shell=True, check=True, text=True, stdout=subprocess.DEVNULL + ) if result.returncode == 0: logger.info(f"Finished: {scene_name}") else: @@ -238,7 +236,9 @@ def main(): logger.info("\nAll render jobs completed.") if len(FAILED_SCENES): - logger.warning(f"The following {len(FAILED_SCENES)} scenes had errors: {FAILED_SCENES}.") + logger.warning( + f"The following {len(FAILED_SCENES)} scenes had errors: {FAILED_SCENES}." + ) else: logger.info("All render jobs were successful!") @@ -292,8 +292,7 @@ setting `max_duration_before_split_reverse` to `None`: class Presentation(Slide): max_duration_before_split_reverse = None - def construct(self): - ... + def construct(self): ... ``` ## Minimize TeX Calls