Contributing
Contributions to Tranquillyzer are welcome. See below for some requirements when contributing to Tranquillyzer, as well as some helpful tips to simplify the process.
How to Make Contributions
- Create a fork of the Tranquillyzer GitHub repository to your own GitHub account if you have not done so already.
- Clone your fork of Tranquillyzer to the location you will be working if you have not done so already.
- Run
conda install conda-forge::prek. This installsprekwhich is used to perform checks for each commit that is made. - Run
prek installto install the hooks that will run whenever you rungit commit. - Move to the
tranquillyzerdirectory and checkout a new branch to work on based on thedevbranch. Tranquillyzer uses thedevbranch for all new work and then moves it tomainwhenever a new release is being made.
cd tranquillyzer
git checkout -b working_branch dev
- Make any changes you want, followed by
git addandgit commit. - Push your changes to your GitHub fork and open a PR from your
working_branchto thedevbranch of thehuishenlabTranquillyzer repository.
Tips for Contributing
- Make sure to frequently pull changes from the
devbranch ofhuishenlab/tranquillyzer. This makes it easier for us to merge your PR and for you to work with the latest versions of the code. - Utilize
prekwith your commits.prekwill be run on your PR when you open it, so by running it ahead of time, you will ensure this part of the PR testing passes on the first run.prekwill cancel a commit if something fails. Sometimes it will automatically update the files for you, so all you have to do is re-add those files and rungit commitagain. Other times, an error will be generated that you have to resolve yourself based on the error messages returned.
- It helps to keep both the
mainanddevbranches of your forked repository in line with thehuishenlabTranquillyzer repository. Two good options are to either periodically updating your repository when you’re not working on it, or to update the branches as the first step of any new project that you work on.