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
{{ message }}
Repository navigation
Commit f5b1de8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,11 @@ pip install -e ".[test]"
38
38
4. Install linting tools:
39
39
40
40
```bash
41
-
pip install ruff
41
+
pip install ruff==0.13.2
42
42
```
43
43
44
+
Pin the version. CI pins it too: an unpinned `ruff` resolves to the latest release, so a new version with changed default rules can turn a green repo red with no code change.
45
+
44
46
## Development Workflow
45
47
46
48
### Code Style
@@ -55,6 +57,18 @@ ruff check .
55
57
ruff format .
56
58
```
57
59
60
+
Both commands cover the whole repo, including `tests/` — that is what CI gates on.
61
+
62
+
### Checks before pushing
63
+
64
+
To run the same checks locally on every `git push`, enable the repo's hook directory once per clone:
65
+
66
+
```bash
67
+
git config core.hooksPath .githooks
68
+
```
69
+
70
+
`.githooks/pre-push` then runs `ruff check`, `ruff format --check` and `pytest`, and aborts the push if any fail. It is opt-in per clone and can be skipped with `git push --no-verify`, so it is a fast feedback loop rather than a guarantee — CI remains the real gate.
71
+
58
72
### Type Hints
59
73
60
74
All public APIs should include type hints. We use Python's built-in `typing` module and Pydantic for model definitions.
0 commit comments