mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Update README.md
This commit is contained in:
parent
30ad96d563
commit
8a4ff03a31
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -134,6 +134,16 @@ For example:
|
||||||
files: \.(js|rb|md|py|sh|txt|yaml|yml)$
|
files: \.(js|rb|md|py|sh|txt|yaml|yml)$
|
||||||
|
|
||||||
|
|
||||||
|
### Supported languages
|
||||||
|
|
||||||
|
- `node`
|
||||||
|
- `python`
|
||||||
|
- `ruby`
|
||||||
|
- `pcre` - "Perl Compatible Regular Expression" Specify the regex as the `entry`
|
||||||
|
- `script` - A script existing inside of a repository
|
||||||
|
- `system` - Executables available at the system level
|
||||||
|
|
||||||
|
|
||||||
## Popular Hooks
|
## Popular Hooks
|
||||||
|
|
||||||
JSHint:
|
JSHint:
|
||||||
|
|
@ -182,6 +192,15 @@ pyflakes:
|
||||||
|
|
||||||
## Advanced features
|
## Advanced features
|
||||||
|
|
||||||
|
### Running in Migration Mode
|
||||||
|
|
||||||
|
By default, if you have existing hooks `pre-commit install` will install in
|
||||||
|
a migration mode which runs both your existing hooks and hooks for pre-commit.
|
||||||
|
To disable this behavior, simply pass `-f` / `--overwrite` to the `install`
|
||||||
|
command. If you decide not to use pre-commit, `pre-commit uninstall` will
|
||||||
|
restore your hooks to the state prior to installation.
|
||||||
|
|
||||||
|
|
||||||
### Temporarily Disabling Hooks
|
### Temporarily Disabling Hooks
|
||||||
|
|
||||||
Not all hooks are perfect so sometimes you may need to skip execution of
|
Not all hooks are perfect so sometimes you may need to skip execution of
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue