First off, thanks for taking the time to contribute! π π
The following is a set of guidelines for contributing to the Deepseek Ruby SDK. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code.
Before creating bug reports, please check the issue list as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible:
- Use a clear and descriptive title
- Describe the exact steps which reproduce the problem
- Provide specific examples to demonstrate the steps
- Describe the behavior you observed after following the steps
- Explain which behavior you expected to see instead and why
- Include details about your configuration and environment
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, please include:
- Use a clear and descriptive title
- Provide a step-by-step description of the suggested enhancement
- Provide specific examples to demonstrate the steps
- Describe the current behavior and explain which behavior you expected to see instead
- Explain why this enhancement would be useful
Unsure where to begin contributing? You can start by looking through these issues:
beginner
- issues which should only require a few lines of codehelp-wanted
- issues which should be a bit more involved thanbeginner
issuesdocumentation
- issues related to improving documentation
- Fill in the required template
- Do not include issue numbers in the PR title
- Follow the Ruby styleguides
- Include thoughtfully-worded, well-structured tests
- Update documentation for any changed functionality
- End all files with a newline
- Fork the repo
- Clone your fork
- Set up development environment:
bin/setup
# Run all tests
bundle exec rake spec
# Run specific test file
bundle exec rspec spec/path/to/test_file.rb
# Run with specific line number
bundle exec rspec spec/path/to/test_file.rb:123
- Use 2 spaces for indentation
- Use snake_case for methods and variables
- Use CamelCase for classes and modules
- Keep lines under 100 characters
- Write descriptive commit messages
- Add tests for new code
- Update documentation
We follow the Conventional Commits specification:
type(scope): description
[optional body]
[optional footer]
Types:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing tests or correcting existing tests
- chore: Changes to the build process or auxiliary tools
Example:
feat(client): add retry mechanism for failed requests
Added exponential backoff retry mechanism for failed API requests.
This helps handle temporary network issues and rate limits.
Closes #123