From 6696dcac3c67d294277bd9eabe07e2b6c36fbfa1 Mon Sep 17 00:00:00 2001 From: Stefania <9659428+StefaniaChierici@users.noreply.github.com> Date: Wed, 22 Jul 2020 10:02:12 +0100 Subject: [PATCH] Complement `--no-verify` instructions with section on how to run without committing --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index ae37a41..a70790c 100644 --- a/readme.md +++ b/readme.md @@ -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.