The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.
Python
Add contribution templates
Sina Atalaycea20b9d4809
diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.mdnew file mode 100644index 00000000..7bbdec55--- /dev/null+++ b/.github/CODE_OF_CONDUCT.md@@ -0,0 +1,89 @@+# Contributor Covenant 3.0 Code of Conduct++## Our Pledge++We pledge to make our community welcoming, safe, and equitable for all.++We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.+++## Encouraged Behaviors++While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.++With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:++1. Respecting the **purpose of our community**, our activities, and our ways of gathering.+2. Engaging **kindly and honestly** with others.+3. Respecting **different viewpoints** and experiences.+4. **Taking responsibility** for our actions and contributions.+5. Gracefully giving and accepting **constructive feedback**.+6. Committing to **repairing harm** when it occurs.+7. Behaving in other ways that promote and sustain the **well-being of our community**.+++## Restricted Behaviors++We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.++1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.+2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.+3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.+4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.+5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.+6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.+7. Behaving in other ways that **threaten the well-being** of our community.++### Other Restrictions++1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.+2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.+3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.+4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.+++## Reporting an Issue++Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.++When an incident does occur, it is important to report it promptly. To report a possible violation, email [[email protected]](mailto:[email protected]).++Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.+++## Addressing and Repairing Harm++If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.++1) Warning+ 1) Event: A violation involving a single incident or series of incidents.+ 2) Consequence: A private, written warning from the Community Moderators.+ 3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.+2) Temporarily Limited Activities+ 1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.+ 2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.+ 3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.+3) Temporary Suspension+ 1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.+ 2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.+ 3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.+4) Permanent Ban+ 1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.+ 2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.+ 3) Repair: There is no possible repair in cases of this severity.++This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.+++## Scope++This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.+++## Attribution++This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).++Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)++For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdnew file mode 100644index 00000000..3789f311--- /dev/null+++ b/.github/CONTRIBUTING.md@@ -0,0 +1,74 @@+# Contributing to manimgx++Thank you for helping. manimgx is developed and maintained by [Academa](https://academa.ai):+its maintainers review every change, and decide what is merged and where the project goes.++This page is how to take part. How manimgx works, and how to set it up, change it and test it,+is in the [Developer Guide](https://manimgx.academa.ai/developer-guide/).++## Issues++Everything starts as an [issue](https://github.com/academa-labs/manimgx/issues/new/choose):+bugs, feature requests, problems in the docs, and questions. Search the existing issues first,+then pick the form that fits.++To report a security vulnerability, don't open an issue: follow the+[security policy](https://github.com/academa-labs/manimgx/blob/main/.github/SECURITY.md).++## Before you start++For anything larger than a small fix, open an issue first and describe what you want to+change. Agreeing on the approach before you write the code saves you work.++manimgx takes its API from [Manim Community Edition](https://www.manim.community): the same+names and parameters. It does not take CE's behavior. What a scene means (its timing, its+geometry, how it looks) is decided on its own merits, so "Manim CE does it this way" is a+reason to look closely, not a reason to change manimgx.++## Making a change++The Developer Guide has everything a change needs:++- [Setup](https://manimgx.academa.ai/developer-guide/): the tools, the system libraries and+ the GPU, and the environment, from a clone to a passing test run.+- [Project management](https://manimgx.academa.ai/developer-guide/project-management/): the+ configuration, the checks, and the rules for typing and formatting.+- [Understanding manimgx](https://manimgx.academa.ai/developer-guide/understanding-manimgx/)+ and [the engine](https://manimgx.academa.ai/developer-guide/engine/): how a scene becomes a+ video.+- [Testing](https://manimgx.academa.ai/developer-guide/testing/): the tests, the integration+ corpus and its review panel.+- [Documentation](https://manimgx.academa.ai/developer-guide/documentation/): the docs site,+ the docstrings its reference is generated from, and the changelog.++## Pull requests++- Keep a pull request to one change, and link the issue it resolves.+- A fix or a feature comes with a test that shows it, and a user-visible change with a line+ under "Unreleased" in the changelog.+- Before you open it, run `just check` and `just test`, and say in the pull request what you+ ran and what you looked at. If the change could slow rendering down, run `just bench main`+ and put its table in it.+- Pull requests are squash-merged, and the title becomes the commit message. Write it as one+ plain sentence that says what changes, like the rest of `git log --oneline`.+- A maintainer reviews every pull request. They may ask for changes, or close a pull request+ that doesn't fit the project.++## Use of AI++AI tools are welcome, and you are still the author:++- Understand every line you submit, run it, and be ready to explain it in review.+- Say in the pull request which tools you used, and for what.+- Don't let an agent act for you: an agent may not open issues or pull requests, or comment,+ on its own.++## License++By contributing, you agree that your contributions are licensed under manimgx's+[MIT License](https://github.com/academa-labs/manimgx/blob/main/LICENSE).++## Code of conduct++Everyone taking part in manimgx follows its+[code of conduct](https://github.com/academa-labs/manimgx/blob/main/.github/CODE_OF_CONDUCT.md).diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.ymlnew file mode 100644index 00000000..b5043901--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug.yml@@ -0,0 +1,76 @@+name: Bug report+description: Something crashes, renders wrong, or doesn't do what the docs say.+type: Bug+body:+ - type: markdown+ attributes:+ value: >-+ Please [search the issues](https://github.com/academa-labs/manimgx/issues?q=is%3Aissue)+ first. To report a security vulnerability, don't open an issue: follow the+ [security policy](https://github.com/academa-labs/manimgx/security/policy).+ - type: textarea+ id: problem+ attributes:+ label: What happened+ description: What you expected, and what happened instead.+ validations:+ required: true+ - type: textarea+ id: scene+ attributes:+ label: Scene+ description: The smallest scene file that shows the problem. It is formatted as Python for you.+ render: python+ validations:+ required: true+ - type: input+ id: command+ attributes:+ label: Command+ description: The command you ran.+ placeholder: manimgx render scene.py+ validations:+ required: true+ - type: textarea+ id: output+ attributes:+ label: Output+ description: What the command printed, including any traceback.+ render: text+ - type: upload+ id: render+ attributes:+ label: Frames or video+ description: What manimgx made, and what you expected if you can show it.+ - type: input+ id: version+ attributes:+ label: manimgx version+ description: What `manimgx --version` prints.+ placeholder: manimgx 0.1.0+ validations:+ required: true+ - type: input+ id: python+ attributes:+ label: Python version+ placeholder: "3.14.0"+ validations:+ required: true+ - type: dropdown+ id: os+ attributes:+ label: Operating system+ options:+ - macOS+ - Linux+ - Other+ validations:+ required: true+ - type: input+ id: gpu+ attributes:+ label: GPU+ description: The GPU and its driver, e.g. "Apple M3 Pro", "NVIDIA RTX 4070, driver 580.82", or "Mesa lavapipe".+ validations:+ required: truediff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 00000000..da2cc1a6--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,10 @@+# Every issue starts from one of the forms beside this file (maintainers can still open a blank+# one). Questions are issues too: the repository has no Discussions.+blank_issues_enabled: false+contact_links:+ - name: Documentation+ url: https://manimgx.academa.ai/+ about: The guide, the API reference and the examples.+ - name: Security vulnerability+ url: https://github.com/academa-labs/manimgx/security/advisories/new+ about: Report it privately, so it can be fixed before it is public.diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.ymlnew file mode 100644index 00000000..21a5883b--- /dev/null+++ b/.github/ISSUE_TEMPLATE/documentation.yml@@ -0,0 +1,16 @@+name: Documentation+description: Something in the docs is wrong, unclear or missing.+labels: [documentation]+body:+ - type: input+ id: page+ attributes:+ label: Page+ description: The page's address, if the problem is on a page.+ placeholder: https://manimgx.academa.ai/guide/quickstart/ # TODO: the docs domain+ - type: textarea+ id: problem+ attributes:+ label: What's wrong or missing+ validations:+ required: truediff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.ymlnew file mode 100644index 00000000..420e659f--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature.yml@@ -0,0 +1,22 @@+name: Feature request+description: Something manimgx should do, but doesn't.+type: Feature+body:+ - type: textarea+ id: goal+ attributes:+ label: What you want to make+ description: The animation or the workflow you're after, and where manimgx gets in the way.+ validations:+ required: true+ - type: textarea+ id: code+ attributes:+ label: How it could look+ description: The code you'd like to write. If Manim Community Edition has this, link its documentation.+ render: python+ - type: textarea+ id: alternatives+ attributes:+ label: What you do now+ description: Your workaround, if you have one.diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.ymlnew file mode 100644index 00000000..de310496--- /dev/null+++ b/.github/ISSUE_TEMPLATE/question.yml@@ -0,0 +1,22 @@+name: Question+description: Ask how to do something with manimgx.+labels: [question]+body:+ # TODO: the docs domain+ - type: markdown+ attributes:+ value: >-+ The [documentation](https://manimgx.academa.ai/) may already answer it.+ - type: textarea+ id: question+ attributes:+ label: Question+ description: What you're trying to do, and what you've tried.+ validations:+ required: true+ - type: textarea+ id: scene+ attributes:+ label: Scene+ description: Your scene so far, if it helps. It is formatted as Python for you.+ render: pythondiff --git a/.github/SECURITY.md b/.github/SECURITY.mdnew file mode 100644index 00000000..79e73ada--- /dev/null+++ b/.github/SECURITY.md@@ -0,0 +1,25 @@+# Security policy++## Reporting a vulnerability++Please don't report a vulnerability in a public issue. Report it privately, through+[GitHub's private vulnerability reporting](https://github.com/academa-labs/manimgx/security/advisories/new)+or by email to [[email protected]](mailto:[email protected]).++Tell us what you found, how to reproduce it (a scene or an input file helps most), and the+manimgx version. We acknowledge every report within 7 days, and keep you updated while we work+on a fix. When it is fixed, we publish a+[security advisory](https://github.com/academa-labs/manimgx/security/advisories), with a CVE+where one applies, and credit you unless you'd rather not be named.++## Supported versions++Fixes go into the latest release.++## Scope++A scene is a Python program, and rendering it runs its code with your permissions. Rendering+an untrusted scene is running untrusted code: that is how manimgx works, not a vulnerability.++In scope is anything that lets input meant as data run code, read or write files, or corrupt+memory: an SVG, an image or a font, or the text and math manimgx typesets.diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdnew file mode 100644index 00000000..f589a152--- /dev/null+++ b/.github/pull_request_template.md@@ -0,0 +1,19 @@+<!--+Thank you! Please read the contributing guide first:+https://github.com/academa-labs/manimgx/blob/main/.github/CONTRIBUTING.md+-->++## Summary++<!-- What does this change, and why? Link the issue it resolves: "Fixes #123". -->++## Test plan++<!-- What you ran (`just check`, `just test`, corpus cases) and what you looked at. -->++## Use of AI++<!-- Which AI tools helped, and with what. Write "None" if none did. -->++- [ ] I have reviewed every line of this change, and I can explain it.+- [ ] A user-visible change has a line under "Unreleased" in `docs/content/changelog.md`.