Contributing¶
Guidelines for contributing to InvokeAI Python Client.
Development Setup¶
# Clone repository
git clone https://github.com/your-org/invokeai-py-client.git
cd invokeai-py-client
# Install in development mode
pip install -e ".[dev]"
# Install pre-commit hooks
pre-commit install
Code Style¶
- Use Black for formatting
- Follow PEP 8 guidelines
- Type hints required for public APIs
- Docstrings for all public functions
Testing¶
# Run tests
python -m pytest tests/
# With coverage
python -m pytest tests/ --cov=invokeai_py_client
# Run specific test
python -m pytest tests/test_workflow.py::TestWorkflow
Pull Request Process¶
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'Add amazing feature'
) - Push branch (
git push origin feature/amazing-feature
) - Open Pull Request
Code Review Checklist¶
- Tests pass
- Documentation updated
- Type hints added
- Changelog updated
- No breaking changes
See Testing for test guidelines.