Contributing code#
This guide is intended for developers who wish to contribute to our codebase. Here’s how to set up a local development environment:
Setting up a development environment#
Fork our repository on GitHub
Locally clone your forked repository (replace
your-usernamewith your GitHub username):git clone https://github.com/{your-username}/BRIDGE.git # or with SSH git clone git@github.com:{your-username}/BRIDGE.git cd BRIDGE
Add the main repository as a remote:
git remote add upstream https://github.com/wangyb97/BRIDGE.git
Install the development dependencies and the package into a virtual environment:
conda env create -f BRIDGE.yml conda activate BRIDGE
Don’t know how to set up a virtual environment? Check out our installation guide!
Scoping changes#
Before you start working on a new feature or bug fix, we recommend opening an issue (if one does not already exist) to discuss the proposed changes. This will help ensure that your changes are aligned with the project’s goals and that you are not duplicating work.
We don’t guarantee that all changes will be accepted, but we will do our best to provide feedback and guidance on how to improve your contributions.
Adding code changes#
We only accept code changes that are made through pull requests. To contribute, follow these steps:
Create a new branch for your changes:
git checkout -b my-change
Make your changes and commit them:
git add . git commit -m "My change"
Push your changes to your fork:
git push origin my-change
Open a pull request on the main repository. Make sure to include a detailed description of your changes in the body and reference any related issues.