Making Contributions
Contribution Process
Ready to contribute? Here's how to setup Pyreal for local development, and make contributions
Clone the
pyreal
repo onto your local machine and cd into the new directory:
Install the project dependencies using Poetry.
Create a branch for local development. You should always be branching off of the
dev
branch when contributing. Give your branch a descriptive name that describes what change you will be making. Each branch should aim to resolve at most one issue.
Now you can make your changes locally. While making your changes, make sure to cover all your additions with the required unit tests, and that none of the old tests fail as a consequence of your changes. For this, make sure to run the tests suite and check the code coverage:
Make also sure to include the necessary documentation in the code as docstrings following the Google docstrings style guide. Test the autodocs generation process by running:
Any PR that includes a new
Explainer
class, significant changes to an existingExplainer
class, or significant changes to the explanation workflow as a whole should also include the results of a benchmarking run. See Benchmarking Guidelines for more info.After running all test and docs commands listed above and confirming they work correctly, commit your changes and push your branch to GitHub:
Submit a pull request through the GitHub website, merging back into
dev
.Once you have a minimum of two approvals, you can merge your branch in. Branches should be deleted on merge.
Last updated