Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
19 changes: 9 additions & 10 deletions docs/source/reference/large_presentation_tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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}."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Unpaired symbol: ‘"’ seems to be missing (EN_UNPAIRED_QUOTES)
URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses
Rule: https://community.languagetool.org/rule/show/EN_UNPAIRED_QUOTES?lang=en-US
Category: PUNCTUATION

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Unpaired symbol: ‘"’ seems to be missing (EN_UNPAIRED_QUOTES)
URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses
Rule: https://community.languagetool.org/rule/show/EN_UNPAIRED_QUOTES?lang=en-US
Category: PUNCTUATION

)
else:
logger.info("All render jobs were successful!")

Expand Down Expand Up @@ -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
Expand Down
Loading