docs/community/topics/pre-commit.md
raw| 1 | # Using `pre-commit` |
| 2 | |
| 3 | Here are a few tips for using `pre-commit`: |
| 4 | |
| 5 | ## Skip the pre-commit checks |
| 6 | |
| 7 | Run the following command: |
| 8 | |
| 9 | ```console |
| 10 | $ git commit --no-verify |
| 11 | ``` |
| 12 | |
| 13 | ## Run pre-commit on all files |
| 14 | |
| 15 | By default, `pre-commit` will run its checks on files that have been modified in a commit. |
| 16 | To instead run it on all files, use this command: |
| 17 | |
| 18 | ```console |
| 19 | $ pre-commit run --all-files |
| 20 | |
| 21 | # Alternatively |
| 22 | $ pre-commit run -a |
| 23 | ``` |