Thank you for your interest in contributing to the Biocomp library! We welcome contributions from the community to help improve and expand the capabilities of Biocomp.
To set up the development environment for Biocomp, follow these steps:
-
Clone the repository:
git clone https://github.com/biokomputer/python.git
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- For Windows:
venv\Scripts\activate
- For macOS and Linux:
source venv/bin/activate
- For Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the tests to ensure everything is set up correctly:
python -m unittest discover tests
When contributing to Biocomp, please adhere to the following code style and conventions:
- Follow the PEP 8 style guide for Python code.
- Use meaningful variable and function names.
- Write docstrings for classes, methods, and functions.
- Add comments to explain complex or non-obvious code.
- Keep the code modular and reusable.
Biocomp uses the unittest
framework for testing. When adding new features or making changes, please ensure that the existing tests pass and add new tests to cover the changes.
To run the test suite, use the following command:
python -m unittest discover tests
For more information on writing and running tests, please refer to the TESTING.md file.
To publish a new version of the Biocomp library to PyPI, follow these steps:
- Ensure that all tests pass by running the test suite.
- Update the version number in
setup.py
andBiocomp/__init__.py
. - Run the publish script:
./publish.sh
The publish script will run the unit tests, build the package, and upload it to PyPI. If the tests fail, the publish process will be aborted.
To submit a pull request to Biocomp, follow these steps:
- Fork the repository and create a new branch for your changes.
- Make your changes and ensure that the tests pass.
- Commit your changes with a descriptive commit message.
- Push your changes to your forked repository.
- Open a pull request against the main Biocomp repository.
Please provide a clear description of your changes and the problem they solve in the pull request.
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository. When reporting an issue, please provide the following information:
- A clear description of the issue or suggestion.
- Steps to reproduce the issue, if applicable.
- The version of Biocomp you are using.
- Any relevant error messages or logs.
We appreciate your contributions to making Biocomp better!