Contributing#
If you would like to contribute to OPynSim then thank you 🥰. It’s people like you that make open-source awesome.
Key Points#
To maximize your chances of success, here’s a few things to keep in mind when contributing:
Read the
CODE_OF_CONDUCT.mdfile in OPynSim’s source code repository. Ensure you agree with it. It is a fairly standard document that can be summarized as “don’t be a jerk”.Give the main developers a “heads up” by adding an issue to the GitHub Issues page, or emailing a developer. Write something that roughly describes what you intend to fix/change. This is very important. This lets us reach an agreement on your contribution before you put effort into it.
Make sure you can build the part of OPynSim that you would like to contribute to. For example, if you plan on contributing to the documentation then you should probably build the documentation locally and ensure that your contribution works (exception: basic things like fixing typos, changing a string, etc. do not require doing this).
Make your changes, ensuring that you try to stick to the style of the existing code. Even if the style is disagreeable (which, in places, it is - but it’s easier for us to fix that later if everything is in one style).
Ensure your contribution works on your local machine. Note: “works” does not necessarily imply “complete”. It can sometimes be acceptable to submit working, but “incomplete”, features if they provide something people need - provided the contribution doesn’t destabilize other parts of the codebase.
Update
CHANGELOG.mdwith an explanation of your change, if it is significantMake pull requests (PRs) directly against the
mainbranch. OPynSim does not use separate branches for development, testing, prod, etc. Branches are typically deleted if they are old and no longer up-to-date withmain.