Contributing¶
Thank you for your interest in contributing to django-phone-verify!
The following guide will help you set up your development environment and start contributing effectively.
Project Setup¶
- Clone the repository - Clone the GitHub repository to your local system: - git clone https://github.com/CuriousLearner/django-phone-verify.git 
- Create and activate a virtual environment - You may use any tool of your choice (e.g., - venvor- virtualenv). Here’s how to do it using the built-in- venv:- python3 -m venv venv source venv/bin/activate 
- Install development dependencies - Make sure you are in the root directory of the project, then install the required dependencies: - python -m pip install -r requirements/development.txt 
You now have a local setup of django-phone-verify ready for development and contribution.
Running Tests¶
Unit tests are located in the tests/ directory, and the project uses pytest for testing.
- Install testing dependencies - From the root directory, run: - python -m pip install -r requirements/testing.txt 
- Run the test suite - To execute the test suite: - pytest 
- Run tests with code coverage - For checking code coverage, use the - --covoption:- pytest --cov
- Test with multiple Python/Django versions using tox - The project supports multiple versions of Python and Django. To run the full test matrix using - tox, use:- tox - Refer to the - tox.inifile at the root of the repository for supported versions and configurations.
Local Development and Testing¶
After making code changes, you can install the app in editable mode inside your Django project to test your modifications:
cd /path/to/your/django/project
pip install -e /path/to/local/django-phone-verify
This installs your local copy instead of the one from PyPI, allowing you to test changes immediately.
Once you’re satisfied, refer back to the Running Tests section to verify that everything works correctly before submitting a pull request.
Feel free to open issues, suggest improvements, and submit pull requests. Happy coding!