Contributing
Thank you for your interest in contributing to weathervault!
Development Setup
- Clone the repository:
git clone https://github.com/rich-iannone/weathervault.git
cd weathervault- Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e ".[dev]"- Run tests:
make test
# Or directly:
pytestRunning Tests
We use pytest for testing. Run the full test suite:
# Run all tests
pytest
# Run with coverage
pytest --cov=weathervault
# Run specific test file
pytest tests/test_stations.py
# Run tests without network access (skip network-dependent tests)
pytest -m "not network"Code Style
We use ruff for linting and formatting:
# Check code style
ruff check .
# Auto-fix issues
ruff check --fix .
# Format code
ruff format .Making Changes
- Create a new branch for your feature or bugfix
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Update documentation as needed
- Submit a pull request
Release Process
Releases are automated via GitHub Actions when a new release is created. The workflow will:
- Run all tests across multiple platforms and Python versions
- Build the package
- Publish to PyPI
Questions?
Feel free to open an issue for questions or discussions!