3.2 KiB
3.2 KiB
Contributing to ComfyUI-Freepik
Thank you for your interest in contributing! This document provides guidelines for contributing to the project.
How to Contribute
Reporting Bugs
- Check if the bug has already been reported in Issues
- If not, create a new issue with:
- Clear title and description
- Steps to reproduce
- Expected vs actual behavior
- ComfyUI version and environment details
- Error messages/logs if applicable
Suggesting Features
- Check existing Issues and Discussions
- Create a new issue or discussion with:
- Clear use case description
- Proposed solution
- Alternatives considered
Pull Requests
- Fork the repository
- Create a branch from
main:git checkout -b feature/your-feature-name - Make your changes
- Test thoroughly
- Commit with clear messages:
git commit -m "Add: Feature description" - Push to your fork
- Create Pull Request with:
- Clear description of changes
- Link to related issues
- Screenshots if UI changes
Development Setup
# Clone your fork
git clone https://github.com/YOUR_USERNAME/ComfyUI-Freepik.git
cd ComfyUI-Freepik
# Install dependencies
pip install -r requirements.txt
# Run tests (when available)
python -m pytest tests/
Code Style
- Follow PEP 8 for Python code
- Use meaningful variable names
- Add docstrings to functions and classes
- Keep functions focused and modular
- Comment complex logic
Testing
- Test your changes with various scenarios
- Ensure backward compatibility
- Test with different ComfyUI versions if possible
- Check for memory leaks in long-running operations
Commit Message Guidelines
Use conventional commits format:
Add:New featureFix:Bug fixUpdate:Update existing functionalityRefactor:Code refactoringDocs:Documentation changesTest:Adding or updating tests
Example:
Add: Support for 16x upscaling in Creative Upscaler
- Implement 16x factor in upscaler_nodes.py
- Update cost calculation for large outputs
- Add validation for maximum output size
Areas for Contribution
High Priority
- Video generation nodes (Kling, PixVerse)
- Comprehensive test suite
- Performance optimizations
- Better error messages
Medium Priority
- Additional AI tools (Relight, Style Transfer)
- Batch processing UI
- Progress bars in ComfyUI interface
- Cache management tools
Documentation
- More workflow examples
- Tutorial videos
- API documentation improvements
- Troubleshooting guide
Questions?
- Open a Discussion
- Check existing Issues
Code of Conduct
- Be respectful and constructive
- Welcome newcomers
- Focus on what is best for the community
- Show empathy towards other community members
License
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for contributing! 🎉