Contributing to TorchLogix
Development Setup
Clone the repository:
git clone https://github.com/ligerlac/torchlogix.git
cd torchlogix
Install in development mode:
pip install -e .[dev]
Install documentation dependencies:
pip install -r docs/requirements.txt
Building Documentation
From the docs/ directory:
# Build HTML documentation
make html
# Open in browser (macOS)
open _build/html/index.html
# Clean build
make clean
make html
Running Tests
# Run all tests
pytest
# Run with coverage
pytest --cov=torchlogix
# Run specific test file
pytest tests/test_lgn.py
Code Style
We use:
Black for code formatting
isort for import sorting
flake8 for linting
Format your code:
black src/ tests/
isort src/ tests/
flake8 src/ tests/
Submitting Changes
Create a feature branch
Make your changes
Add tests for new functionality
Ensure all tests pass
Format code with black/isort
Submit a pull request