Development Setup¶
Set up your development environment for HAEO.
Prerequisites¶
- Python 3.13+
- uv package manager
- Git
Installation¶
Clone Repository¶
Install Dependencies¶
This installs all development dependencies including:
- pytest (testing)
- ruff (linting/formatting)
- mypy (type checking)
- mkdocs (documentation)
Running Tests¶
# All tests
uv run pytest
# Specific test file
uv run pytest tests/test_model.py
# With coverage
uv run pytest --cov=custom_components.haeo
Code Quality¶
Linting¶
Formatting¶
Type Checking¶
Documentation¶
Build Locally¶
Visit http://127.0.0.1:8000
Deploy¶
Documentation automatically deploys via GitHub Actions on push to main.
Next Steps¶
- Read Contributing guidelines
- Explore Architecture
- Check Testing guide