Thank you for your interest in contributing to the Extend API Client! This document provides guidelines and steps for contributing.
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/extend-python.git cd extend-python - Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install development dependencies:
pip install -e ".[dev]"
This project uses:
Before submitting a PR, please run:
black .
isort .We have two types of tests:
- Unit tests (
tests/test_client.py) - Integration tests (
tests/test_integration.py)
Run all tests:
pytestRun only unit tests:
pytest tests/test_client.pyRun only integration tests:
pytest tests/test_integration.pyIntegration tests require environment variables:
EXTEND_API_KEYEXTEND_API_SECRETEXTEND_TEST_RECIPIENTEXTEND_TEST_CARDHOLDER
-
Create a new branch for your feature:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git commit -m "Description of your changes" -
Push to your fork:
git push origin feature/your-feature-name
-
Create a Pull Request from your fork to the main repository
- Ensure all tests pass
- Follow the existing code style
- Add tests for new functionality
- Update documentation as needed
- Keep commits focused and atomic
- Update the README.md if you add new features
- Add docstrings to new functions and classes
- Update the CHANGELOG.md with your changes
If you have any questions, feel free to:
- Open an issue
- Contact the maintainers
- Check the Extend API Documentation
Thank you for contributing!