We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
Contributions to this project must be accompanied by a Contributor License Agreement. You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.
You generally only need to submit a CLA once, so if you've already submitted one (even if it was for a different project), you probably don't need to do it again.
Please file issues before doing substantial work; this will ensure that others
don't duplicate the work and that there's a chance to discuss any design issues.
Changes only tweaking style are unlikely to be accepted unless they are applied
consistently across the project.
Most of the code style is derived from the
Google Style Guides for the appropriate
language and is generally not something we accept changes on (as clang-format
and clang-tidy handle that for us).
For Python code, we utilize yapf and ruff.
yapfis used to format Python code according to the Google Python Style Guide. It helps in making the code more readable and maintainable by applying consistent formatting rules.ruffserves as a fast Python code analysis and formatting tool. It combines multiple code - checking and formatting functionalities, and can quickly identify and fix style issues in Python code, ensuring it meets our style requirements.
The compiler portion of the project follows MLIR style. Improvements to code structure and clarity are welcome but please file issues to track such work first.
If you would like to receive additional recognition for your contribution, you may add yourself (or your organization) to the AUTHORS file. This keeps track of those who have made significant contributions to the project. Please add the entity who owns the copyright for your contribution. The source control history remains the most accurate source for individual contributions.
We actively welcome your pull requests.
- Fork the repo and create your branch from
main. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- If you haven't already, complete the Contributor License Agreement ("CLA").
We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue.