Skip to content

Commit d227131

Browse files
committed
docs: add pre-commit
1 parent c8bbfc0 commit d227131

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Thank you for your interest in contributing to the MCP Python SDK! This document
1212
```bash
1313
uv sync --frozen --all-extras --dev
1414
```
15+
6. Set up pre-commit hooks:
16+
17+
```bash
18+
uv tool install pre-commit --with pre-commit-uv --force-install
19+
```
1520

1621
## Development Workflow
1722

@@ -40,6 +45,12 @@ uv run ruff check .
4045
uv run ruff format .
4146
```
4247

48+
7. (Optional) Run pre-commit hooks on all files:
49+
50+
```bash
51+
pre-commit run --all-files
52+
```
53+
4354
7. Submit a pull request to the same branch you branched from
4455

4556
## Code Style

0 commit comments

Comments
 (0)