Contributing Guide
Thank you for your interest in KnowAI SSE! We welcome all forms of contributions.
How to Contribute
Report Issues
If you find a bug or have feature suggestions:
- Check Issues for existing related issues
- If none exists, create a new Issue with detailed description of the problem or suggestion
Submit Code
- Fork this repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Create a Pull Request
Development Standards
Code Style
- Format code with Black:
black src/ tests/ - Check code with Ruff:
ruff check src/ tests/ - Type check with mypy:
mypy src/
Testing
- Add tests for new features
- Ensure all tests pass:
pytest tests/ -v - Test coverage should not decrease
Documentation
- Add docstrings for public APIs
- Update relevant documentation
Commit Messages
Use clear commit messages:
feat: New featurefix: Bug fixdocs: Documentation updatestyle: Code formatting (no functional changes)refactor: Code refactoringtest: Adding testschore: Build process or auxiliary tool changes
Examples:
License
By contributing code, you agree that your contributions will be licensed under the MIT License.