Contributing
We welcome contributions to psqlc!
Development Setup
Fork the repository:
git clone https://github.com/cumulus13/psqlc.git cd psqlc
Create virtual environment:
python -m venv venv source venv/bin/activate # Linux/macOS # or venv\\Scripts\\activate # Windows
Install development dependencies:
pip install -e ".[dev]"
Running Tests
pytest tests/
pytest --cov=psqlc tests/
Code Style
We use Black for code formatting:
black psqlc.py
flake8 psqlc.py
Building Documentation
cd docs
make html
# View at docs/_build/html/index.html
Pull Requests
Create a feature branch:
git checkout -b feature/your-feature
Make your changes
Add tests if applicable
Ensure all tests pass
Submit pull request
Guidelines
Follow PEP 8 style guide
Add docstrings to new functions
Update documentation for new features
Include examples in documentation
Write clear commit messages
Bug Reports
Submit bug reports at: https://github.com/cumulus13/psqlc/issues
Include:
Operating system and version
Python version
PostgreSQL version
Steps to reproduce
Expected vs actual behavior
Error messages
Feature Requests
We’re open to new features! Please open an issue to discuss before implementing.
License
By contributing, you agree that your contributions will be licensed under the MIT License.