docs(pre-commit): fixed pre-commit docs for custom extensions

closes #421
This commit is contained in:
Christopher Pickering 2022-10-10 12:24:24 +02:00
parent 2280c09aef
commit 319ebf3300
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
3 changed files with 3 additions and 0 deletions

View file

@ -49,6 +49,7 @@ repos:
hooks:
- id: djlint-handlebars
files: "\\.html"
types_or: ['html']
```
You can use the `files` or `exclude` parameters to constrain each hook to its own directory, allowing you to support multiple template languages within the same repo.

View file

@ -49,6 +49,7 @@ repos:
hooks:
- id: djlint-handlebars
files: "\\.html"
types_or: ['html']
```
Vous pouvez utiliser les paramètres `files` ou `exclude` pour contraindre chaque hook à son propre répertoire, ce qui vous permet de supporter plusieurs langages de template dans le même repo.

View file

@ -49,6 +49,7 @@ repos:
hooks:
- id: djlint-handlebars
files: "\\.html"
types_or: ['html']
```
Вы можете использовать параметры `files` или `exclude`, чтобы ограничить каждый хук своим каталогом, что позволит вам поддерживать несколько языков шаблонов в одном репозитории.