diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a263678a2..1617cd9f1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,6 +13,12 @@ Thank you for your interest in contributing to the MCP Python SDK! This document uv sync --frozen --all-extras --dev ``` +6. Set up pre-commit hooks: + +```bash +uv tool install pre-commit --with pre-commit-uv --force-reinstall +``` + ## Development Workflow 1. Choose the correct branch for your changes: @@ -45,7 +51,13 @@ uv run ruff format . uv run scripts/update_readme_snippets.py ``` -8. Submit a pull request to the same branch you branched from +8. (Optional) Run pre-commit hooks on all files: + +```bash +pre-commit run --all-files +``` + +9. Submit a pull request to the same branch you branched from ## Code Style