Spaces:
Runtime error
Runtime error
Contributing to stroke-deepisles-demo
Thank you for your interest in contributing!
Development Setup
Clone the repository
git clone https://github.com/The-Obstacle-Is-The-Way/stroke-deepisles-demo.git cd stroke-deepisles-demoInstall uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | shInstall dependencies
uv syncInstall pre-commit hooks
uv run pre-commit install
Running Tests
# All tests (excluding integration)
uv run pytest
# With coverage
uv run pytest --cov
# Integration tests (requires Docker)
uv run pytest -m integration
# Slow tests (requires Docker + DeepISLES image)
uv run pytest -m "integration and slow"
Code Quality
# Lint
uv run ruff check .
# Format
uv run ruff format .
# Type check
uv run mypy src/
Project Structure
src/stroke_deepisles_demo/
βββ core/ # Shared utilities (config, types, exceptions)
βββ data/ # HF dataset loading and case management
βββ inference/ # DeepISLES Docker integration
βββ ui/ # Gradio application
βββ pipeline.py # End-to-end orchestration
βββ metrics.py # Evaluation metrics
Pull Request Process
- Create a feature branch from
main - Write tests for new functionality
- Ensure all tests pass and code quality checks pass
- Update documentation if needed
- Submit PR with clear description
Code Style
- Type hints on all functions
- Docstrings in Google style
- Keep functions focused and small
- Prefer explicit over implicit