1.5 KiB
1.5 KiB
Contributing to Munich News Daily
Thank you for your interest in contributing!
Getting Started
- Fork the repository
- Clone your fork
- Create a feature branch
- Make your changes
- Run tests
- Submit a pull request
Development Setup
# Clone repository
git clone <your-fork-url>
cd munich-news
# Copy environment file
cp backend/.env.example backend/.env
# Start development environment
docker-compose up -d
# View logs
docker-compose logs -f
Running Tests
# Run all tests
docker-compose exec crawler python -m pytest tests/crawler
docker-compose exec sender python -m pytest tests/sender
docker-compose exec backend python -m pytest tests/backend
# Run specific test
docker-compose exec crawler python tests/crawler/test_crawler.py
Code Style
- Follow PEP 8 for Python code
- Use meaningful variable names
- Add docstrings to functions
- Keep functions small and focused
- Write tests for new features
Commit Messages
- Use clear, descriptive commit messages
- Start with a verb (Add, Fix, Update, etc.)
- Keep first line under 50 characters
- Add details in the body if needed
Example:
Add RSS feed validation
- Validate URL format
- Check feed accessibility
- Add error handling
Pull Request Process
- Update documentation if needed
- Add tests for new features
- Ensure all tests pass
- Update CHANGELOG.md
- Request review from maintainers
Questions?
Open an issue or reach out to the maintainers.
Thank you for contributing! 🎉