Contributing
We welcome contributions to the Riemann library! This document provides guidelines for contributing to the project.
How to Contribute
There are several ways to contribute to Riemann:
Report Bugs: If you find a bug, please report it by creating an issue on our Gitee repository.
Suggest Features: Have an idea for a new feature? Please open an issue to discuss it.
Submit Pull Requests: If you’d like to contribute code, please follow the steps below.
Development Setup
Fork the repository on Gitee
Clone your fork locally:
git clone https://gitee.com/[your-username]/Riemann.git cd Riemann
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Install in development mode:
pip install -e .
Install test dependencies:
pip install -e .[tests]
Code Style
Follow PEP 8 for Python code style
Use meaningful variable and function names
Add docstrings to all public functions and classes
Ensure all tests pass before submitting a pull request
Submitting Changes
Create a new branch for your feature or bugfix:
git checkout -b feature-name
Make your changes and add tests if applicable
Run the tests:
pytest
Commit your changes:
git commit -m "Description of your changes"
Push to your fork:
git push origin feature-name
Create a pull request on Gitee
License
By contributing to Riemann, you agree that your contributions will be licensed under the BSD-3-Clause License.