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
Copy file name to clipboardExpand all lines: docs/source/contributing.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,9 @@
5
5
6
6
### Setup pre-commit hooks
7
7
- Install pre-commit hooks with `pip install pre-commit`.
8
-
- Run `pre-commit autoupdate` once to configure the hooks.
9
-
- Re-run `pre-commit autoupdate` every time a new hook got added.
8
+
- Run `pre-commit install` once to install the hooks, so they will be run on every commit.
9
+
- If the hooks introduce changes, they'll be visible with `git diff`. Review them and `git add` them if everything is fine, then re-execute the before commit, it should pass now.
10
+
- If you want to manually trigger the hooks, you may do `pre-commit run --all-files`
10
11
11
12
Now all the pre-commit hooks will be automatically run when you try to commit and if they introduce some changes, you need to re-add the changed files before being able to commit and push.
0 commit comments