Skip to content

Latest commit

 

History

History
94 lines (67 loc) · 2.85 KB

CONTRIBUTING.md

File metadata and controls

94 lines (67 loc) · 2.85 KB

Contributing to Biocomp

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.

Development Setup

To set up the development environment for Biocomp, follow these steps:

  1. Clone the repository:

    git clone https://github.com/biokomputer/python.git
    
  2. Create a virtual environment:

    python -m venv venv
    
  3. Activate the virtual environment:

    • For Windows:
      venv\Scripts\activate
      
    • For macOS and Linux:
      source venv/bin/activate
      
  4. Install the required dependencies:

    pip install -r requirements.txt
    
  5. Run the tests to ensure everything is set up correctly:

    python -m unittest discover tests
    

Code Style and Conventions

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.

Testing

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.

Publishing to PyPI

To publish a new version of the Biocomp library to PyPI, follow these steps:

  1. Ensure that all tests pass by running the test suite.
  2. Update the version number in setup.py and Biocomp/__init__.py.
  3. 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.

Submitting Pull Requests

To submit a pull request to Biocomp, follow these steps:

  1. Fork the repository and create a new branch for your changes.
  2. Make your changes and ensure that the tests pass.
  3. Commit your changes with a descriptive commit message.
  4. Push your changes to your forked repository.
  5. 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.

Reporting Issues

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!