Contributing Guidelines¶
We welcome contributions to enhance this deep learning boilerplate template! Follow these guidelines to ensure consistency, high code quality, and proper scientific attribution.
1. Development Principles¶
- Modular Architectural Integrity: Keep atomic layers in
src/backend/components/layers/, multi-layer blocks insrc/backend/components/blocks/, loss functions insrc/backend/losses/, evaluation metrics insrc/backend/metrics/, and composite models insrc/models/. - Academic Rigor: Always include official peer-reviewed paper citations (Authors, Venue, Year, Title, DOI/arXiv URL) in the docstrings of newly added neural primitives.
- Type Annotations: Provide strict Python type hints for all function arguments and return types.
2. Code Quality & Formatting¶
Before opening a pull request, format your code and run syntax validation:
# Run pytest unit test suite
pytest tests/unit/
# Run static syntax analysis across src/
python3 -c "import ast, pathlib; [ast.parse(p.read_text()) for p in pathlib.Path('src').rglob('*.py')]"
# Build documentation locally
uv run properdocs serve
3. Pull Request Checklist¶
- Code follows Google Python Style Guide.
- Added docstrings with academic references for new loss functions or architectures.
- Updated
NAV_TITLESindocs/gen_ref_pages.pyif adding a new package directory. - Unit tests added in
tests/unit/and verified clean withpytest. - Local documentation builds cleanly with zero broken links.