Skip to content

Commit

Permalink
Merge pull request #8 from StefaniaChierici/patch-1
Browse files Browse the repository at this point in the history
Complement `--no-verify` instructions with section on how to run with…
  • Loading branch information
Peter Mounce authored Aug 6, 2020
2 parents 33aebe1 + 6696dca commit cc5f03d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ Use the `--no-verify` flag of the `git push` (or `commit`) command to skip enfor

See [pre-commit's docs](https://pre-commit.com/#temporarily-disabling-hooks) for more information.

#### How to: run pre-commit checks without committing

Run `pre-commit run` to execute all the pre-commit hooks against the staged files. Add the `--all-files` option to run it also on not-staged files (useful for example if you have previously committed/pushed with linting errors using the `--no-verify` option).

See [pre-commit docs](https://pre-commit.com/#pre-commit-run) for more information.

#### How to: update plugins

See [upstream's `pre-commit autoupdate`] section.
Expand Down

0 comments on commit cc5f03d

Please sign in to comment.