mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
added first two hooks to readme
This commit is contained in:
parent
696b9321cd
commit
c7429b5137
1 changed files with 6 additions and 0 deletions
|
|
@ -99,6 +99,12 @@ Add this to your `.pre-commit-config.yaml`
|
|||
use `args: [--markdown-linebreak-ext=md]` (or other extensions used
|
||||
by your markdownfiles). If for some reason you want to treat all files
|
||||
as markdown, use `--markdown-linebreak-ext=*`.
|
||||
- `check-xml-encoding` - Checks that xml files have required encoding as first line.
|
||||
- To specify desired encoding use `args: [--encoding]`
|
||||
- `check-location` - Checks that specified files are located inside specified directories.
|
||||
- To specify desired encoding use: `args: [--directories, --files]`
|
||||
Number of specified directories must match number of specified files.
|
||||
Order matters: First 'files' types found will be checked to be inside of first 'directories'.
|
||||
|
||||
### Deprecated / replaced hooks
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue