Biofit is an open source project, so all contributions and suggestions are welcome.
You can contribute in many different ways: giving ideas, answering questions, reporting bugs, proposing enhancements, improving the documentation, fixing bugs, and more.
Many thanks in advance to every contributor.
You have the list of open Issues at: Biofit Issues
If you want to contribute to the codebase, follow these steps:
-
Clone the Repository:
Clone the
dev
branch of the repository to your local disk:git clone [email protected]:psmyth94/biofit cd biofit
-
Create a New Branch:
Create a new branch to hold your development changes:
git checkout -b a-descriptive-name-for-my-changes
Do not work on the
main
branch directly. -
Set Up a Development Environment:
Set up a development environment by running the following command:
mamba env create -n biofit-local python=3.10 mamba activate biofit-local pip install -e ".[test]"
(If Biofit was already installed in the virtual environment, remove it with
pip uninstall biofit
before reinstalling it in editable mode with the-e
flag.) -
Develop the Features on Your Branch:
Make your changes to the code.
-
Format Your Code:
Format your code. Run
ruff
so that your newly added files look nice with the following command:ruff check . --fix
-
(Optional) Use Pre-commit Hooks:
You can also use pre-commit to format your code automatically each time you run
git commit
, instead of runningruff
manually. To do this, install pre-commit viapip install pre-commit
and then runpre-commit install
in the project's root directory to set up the hooks. Note that if any files were formatted by pre-commit hooks during committing, you have to rungit commit
again. -
Commit Your Changes:
Once you're happy with your contribution, add your changed files and make a commit to record your changes locally:
git add -u git commit -m "Your commit message"
-
Sync with the Original Repository:
It is a good idea to sync your copy of the code with the original repository regularly. This way you can quickly account for changes:
git fetch upstream git rebase upstream main
-
Push the Changes:
Once you are satisfied, push the changes to the remote repository using:
git push origin a-descriptive-name-for-my-changes
-
Create a Pull Request:
Go to the webpage of the repository on GitHub. Click on "Pull request" to send your changes to the project maintainers for review.
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to abide by this code.