Thank you for your interest in contributing to the Agent Tool Registry!
-
Clone the repository
git clone https://github.com/microsoft/agent-governance-toolkit.git cd atr -
Create a virtual environment
python -m venv .venv .venv\Scripts\activate # Windows # or source .venv/bin/activate # Unix/macOS
-
Install development dependencies
pip install -e ".[dev]" -
Install pre-commit hooks
pre-commit install
We use the following tools to maintain code quality:
- Ruff: For linting and formatting
- MyPy: For type checking
- pytest: For testing
# Linting
ruff check .
# Formatting
ruff format .
# Type checking
mypy atr
# Tests
pytest- Fork the repository and create a branch from
main - Write tests for any new functionality
- Update documentation if needed
- Run all checks before submitting
- Write clear commit messages following conventional commits
type(scope): description
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
# Run all tests
pytest
# Run with coverage
pytest --cov=atr --cov-report=html
# Run specific test file
pytest tests/test_registry.py- Use Google-style docstrings
- Include type hints for all parameters and return values
- Add examples in docstrings where helpful
Open an issue on GitHub or reach out to the maintainers.