Thank you for your interest in contributing to TrustEval! This guide will help you get started.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/trusteval.git - Create a virtual environment:
python -m venv .venv && source .venv/bin/activate - Install in dev mode:
pip install -e ".[dev]" - Create a branch:
git checkout -b feature/your-feature-name
- Follow PEP 8 conventions
- Use Google-style docstrings for all public classes and methods
- Run
ruff check trusteval/before committing - Run
mypy trusteval/for type checking
- Write unit tests for all new functionality
- Run tests:
pytest tests/unit -v --cov=trusteval - Maintain 80%+ code coverage
- Never make real API calls in tests — always use mocks
- Never hardcode API keys or secrets
- Run
bandit -r trusteval/to check for security issues - Follow the security guidelines in SECURITY.md
- Update tests for your changes
- Update documentation if needed
- Update CHANGELOG.md
- Ensure all CI checks pass
- Request review from maintainers
- New industry modules (Manufacturing, Education, etc.)
- Additional LLM provider connectors
- Improved bias/toxicity detection algorithms
- Dashboard UI improvements
- Documentation and examples
- Bug fixes and performance improvements
Please read and follow our Code of Conduct.
Open an issue or reach out to Antrixsh Gupta.