Thank you for your interest in contributing to PyAndroid! This document provides guidelines and instructions for contributing.
Be respectful, constructive, and professional in all interactions.
- Check if the bug has already been reported
- Create a detailed issue with:
- Clear title and description
- Steps to reproduce
- Expected vs actual behavior
- Environment details (OS, Python version)
- Code samples
- Check existing issues and discussions
- Create an issue describing:
- The problem it solves
- Proposed implementation
- Potential impact
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes
- Add tests for new functionality
- Run tests:
pytest tests/ - Format code:
black pyandroid/ - Commit:
git commit -m "Add amazing feature" - Push:
git push origin feature/amazing-feature - Open a Pull Request
# Clone repository
git clone https://github.com/subhobhai943/pyandroid-dev.git
cd pyandroid-dev
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in development mode
pip install -e ".[dev,gui]"
# Run tests
pytest tests/- Follow PEP 8
- Use type hints where possible
- Write docstrings for all public APIs
- Add tests for new features
- Keep line length under 100 characters
# Run all tests
pytest tests/
# Run with coverage
pytest --cov=pyandroid tests/
# Run specific test
pytest tests/test_core.py::TestActivity::test_activity_lifecycleBy contributing, you agree that your contributions will be licensed under the PyAndroid Custom License v1.0.
Open an issue or start a discussion on GitHub!