Contributing
We welcome contributions to ModelDoctor! Whether you are adding a new Doctor, fixing a bug, or improving the documentation, your help is appreciated.
Development Setup
- Fork the repository on GitHub.
- Clone your fork locally:
- Install in editable mode with development dependencies:
Running Tests
ModelDoctor uses pytest. Ensure all tests pass before submitting a Pull Request:
Running the Validation Laboratory
If you modify the core diagnostic engine or threshold rules, you must run the Validation Laboratory to ensure you haven't caused regressions in diagnostic accuracy:
Your PR must maintain or improve the existing Validation Accuracy (currently 98.1%).Coding Standards
- We follow PEP 8. Use
blackfor formatting. - All public functions and classes must have docstrings.
- Ensure type hints are used throughout the codebase.
Submitting a PR
- Create a feature branch:
git checkout -b feature/my-new-doctor. - Commit your changes with clear messages.
- Push to your fork and open a Pull Request against the
mainbranch. - Ensure the CI pipeline (GitHub Actions) passes.
Thank you for helping improve ModelDoctor!