Thank you for your interest in contributing to OpenGSQ Python. This guide will help you get started with the contribution process.
This project and everyone participating in it is governed by our Code of Conduct By participating, you are expected to uphold this code.
The opengsq-python is organized as follows:
/docs- Documentation/opengsq- Core opengsq library/tests- Tests
When contributing to opengsq-python:
- Keep changes focused. Large PRs are harder to review and unlikely to be accepted. We recommend opening an issue and discussing it with us first.
- Write clear, self-explanatory code. Use comments only when truly necessary.
- Follow the existing code style and conventions.
- Fork the repository to your GitHub account
- Clone your fork locally:
git clone https://github.com/your-username/opengsq-python.git cd opengsq-python - Create a Virtual Python Environment
python -m venv venv
- Activate the Environment
venv\Scripts\activate.bat
source venv/bin/activate - Install Python dependencies
pip install -r requirements.txt
- Install Python dependencies (tests)
pip install -r tests/requirements.txt
- Install Python dependencies (docs)
pip install -r docs/requirements.txt
We use Ruff for code formatting and linting. Before committing, please ensure your code is properly formatted:
# Format all code
ruff format
# Check for linting issues
ruff check- Sphinx API Documentation Generation
sphinx-apidoc -o docs/api opengsq- Sphinx HTML Documentation Build
sphinx-build -b html docs docs/_build- Keep documentation up-to-date with code changes
- Use clear, concise language
- Include code examples for common use cases
- Document any breaking changes in the migration guide
- Follow the existing documentation style and structure