Contributing#
We welcome contributions to lightgraph! This page provides guidelines for contributing to the project.
Getting Started#
Fork the repository on GitHub
Clone your fork locally
Create a new branch for your feature or bugfix
Make your changes
Test your changes
Submit a pull request
Development Setup#
To set up a development environment:
git clone https://github.com/haozhu233/lightgraph.git
cd lightgraph/python
pip install -e .
For documentation development:
cd docs
pip install -r requirements.txt
make html
Code Style#
Please follow these guidelines:
Use Python 3.6+ compatible code
Follow PEP 8 style guidelines
Add docstrings to new functions
Include type hints where appropriate
Write tests for new functionality
Testing#
Before submitting a pull request:
Run existing tests to ensure nothing is broken
Add tests for new functionality
Ensure all tests pass
Documentation#
When adding new features:
Update the API documentation
Add examples to the examples page
Update the vignettes if needed
Ensure the documentation builds without errors
Reporting Issues#
When reporting issues, please include:
Python version
Operating system
Steps to reproduce the issue
Expected vs actual behavior
Any error messages
Feature Requests#
For feature requests, please:
Describe the use case
Explain why it would be valuable
Consider if it fits the project’s scope
Be willing to contribute to implementation
Pull Request Process#
Ensure your code follows the style guidelines
Add appropriate tests
Update documentation
Write a clear description of your changes
Reference any related issues
License#
By contributing to lightgraph, you agree that your contributions will be licensed under the MIT License.