Thank you for your interest in contributing to the Netgsm Python SDK! This document provides guidelines and steps for contributing.
-
Fork the repository and clone it to your local machine:
git clone https://github.com/netgsm/netgsm-sms-python.git cd netgsm-python -
Create a virtual environment and install development dependencies:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -e ".[dev]" -
Create a
.envfile by copying.env.exampleand update it with your credentials:cp .env.example .env
We follow these standards for code quality:
To check code quality:
flake8 netgsm
black --check netgsm
To auto-format your code:
black netgsm
Run tests with pytest:
pytest
For code coverage:
pytest --cov=netgsm tests/
- Ensure your code follows our standards and passes all tests
- Update documentation as needed
- Add your changes to the CHANGES.md file
- Create a pull request with a clear description of the changes and any relevant issue numbers
Please use clear and descriptive commit messages with the following format:
feat: add new feature X
fix: resolve issue with Y
docs: update documentation for Z
test: add tests for feature W
refactor: improve implementation of V
When reporting issues, please include:
- A clear, descriptive title
- A detailed description of the issue
- Steps to reproduce the problem
- Expected behavior
- Actual behavior
- Your environment (Python version, OS, etc.)
By contributing to this project, you agree that your contributions will be licensed under the project's MIT License.