Contributing to rLLM
We welcome contributions to rLLM! This guide will help you get started with the development process.
Getting Started
Development Workflow
Creating a New Feature
-
Create a new branch for your feature:
-
Make your changes, ensuring you follow the code style guidelines
- Add tests for your feature
- Run the tests locally to ensure they pass
- Commit your changes with a descriptive message
- Push your branch to GitHub
- Create a pull request from your branch to the main repository
Running Tests
To run the tests:
To run a specific test file:
Code Style
We use pre-commit to perform code formatting and linting with Ruff: We use pre-commit to help improve code quality. To initialize pre-commit, run:
To resolve CI errors locally, you can manually run pre-commit by:
Submitting a Pull Request
When you're ready to submit your changes:
- Make sure your branch is up-to-date with the main branch
- Ensure all tests pass and pre-commit check passes
- Create a pull request with a descriptive title and detailed description
- Link any relevant issues in your pull request description
Code Review
After submitting a pull request:
- Core maintainers will review your code
- Address any feedback or comments
- Once approved, your changes will be merged into the main branch
Communication
- Issues: Use GitHub issues for bug reports and feature requests
- Discussions: Use GitHub discussions for general questions and ideas
- Pull Requests: For submitting code changes
License
By contributing to rLLM, you agree that your contributions will be licensed under the project's MIT license.