mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-12 10:00:57 +00:00
added note to pre-commit docs
This commit is contained in:
parent
a8af2856a3
commit
dc44cfdded
1 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ This will look for files matching ``*.hbs`` and set ``--profile=handlebars``.
|
|||
|
||||
This will look for files matching ``*.tmpl`` and set ``--profile=golang``.
|
||||
|
||||
Note that these predefined hooks are sometimes too conservative in the inputs they accept (your templates may be using a different extension) so pre-commit explicitly allows you to override any of these pre-defined options.
|
||||
Note that these predefined hooks are sometimes too conservative in the inputs they accept (your templates may be using a different extension) so pre-commit explicitly allows you to override any of these pre-defined options. See the `pre-commit docs <https://pre-commit.com/#pre-commit-configyaml---hooks>`_ for additional configuration
|
||||
|
||||
Default Django example
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -174,4 +174,4 @@ Handlebars with .html extension instead of .hbs
|
|||
- id: djlint-handlebars
|
||||
files: "\\.html"
|
||||
|
||||
You can use the ``files`` or ``exclude`` parameters to constrain each hook to its own directory, allowing you to support multiple templating languages within the same repo.
|
||||
You can use the ``files`` or ``exclude`` parameters to constrain each hook to its own directory, allowing you to support multiple templating languages within the same repo.
|
||||
|
|
|
|||
Loading…
Reference in a new issue