You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* switch from pre-commit to prek
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix prek tools list in contributing.mdx - include prettier, not pytest
* Use prek-action for caching
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/development/contributing.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,13 +49,13 @@ cd fastmcp
49
49
# Install all dependencies including dev tools
50
50
uv sync
51
51
52
-
# Install pre-commit hooks
53
-
uv run pre-commit install
52
+
# Install prek hooks
53
+
uv run prek install
54
54
```
55
55
56
56
In addition, some development commands require [just](https://github.com/casey/just) to be installed.
57
57
58
-
Pre-commit hooks will run automatically on every commit to catch issues before they reach CI. If you see failures, fix them before committing - never commit broken code expecting to fix it later.
58
+
Prek hooks will run automatically on every commit to catch issues before they reach CI. If you see failures, fix them before committing - never commit broken code expecting to fix it later.
59
59
60
60
### Development Standards
61
61
@@ -100,19 +100,19 @@ The focus is on idiomatic, high-quality Python. FastMCP uses patterns like `NotS
100
100
101
101
**Breaking established patterns** confuses readers. If you must deviate, discuss in the issue first.
102
102
103
-
### Pre-Commit Checks
103
+
### Prek Checks
104
104
105
105
```bash
106
106
# Runs automatically on commit, or manually:
107
-
uv run pre-commit run --all-files
107
+
uv run prek run --all-files
108
108
```
109
109
110
110
This runs three critical tools:
111
111
-**Ruff**: Linting and formatting
112
-
-**ty**: Static type checking
113
-
-**Pytest**: Core test suite
112
+
-**Prettier**: Code formatting
113
+
-**ty**: Static type checking
114
114
115
-
CI will reject PRs that fail these checks. Always run them locally first.
115
+
Pytest runs separately as a distinct workflow step after prek checks pass. CI will reject PRs that fail these checks. Always run them locally first.
116
116
117
117
### Testing
118
118
@@ -155,7 +155,7 @@ just api-ref-all
155
155
156
156
#### Before Submitting
157
157
158
-
1.**Run all checks**: `uv run pre-commit run --all-files && uv run pytest`
158
+
1.**Run all checks**: `uv run prek run --all-files && uv run pytest`
159
159
2.**Keep scope small**: One feature or fix per PR
160
160
3.**Write clear description**: Your PR description becomes permanent documentation
161
161
4.**Update docs**: Include documentation for API changes
0 commit comments