added note to pre-commit docs

This commit is contained in:
Christopher Pickering 2021-11-12 08:48:25 +01:00
parent a8af2856a3
commit dc44cfdded
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84

View file

@ -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.