You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this neat hook 馃挴 . Does this detect .jinja files? I tried to specify that extension in the config as shown below but they're getting skipped.
- repo: https://github.com/rtts/djhtml
rev: v1.5.1
hooks:
- id: djhtml
# Indent only .jinja files in template directories
files: .*/templates/.*\.jinja$
args: ["--tabwidth=2"]
- id: djcss
# Run this hook only on SCSS files (CSS and SCSS is the default)
types: [scss]
The text was updated successfully, but these errors were encountered:
Hi there! I think the following pre-commit configuration should work for your use case:
- repo: https://github.com/rtts/djhtml
rev: v1.5.1
hooks:
- id: djhtml
# Indent only .jinja files in template directories
types: [file]
files: .*/templates/.*\.jinja$
args: ["--tabwidth=2"]
- id: djcss
# Run this hook only on SCSS files (CSS and SCSS is the default)
types: [scss]
Thanks for this neat hook 馃挴 . Does this detect
.jinja
files? I tried to specify that extension in the config as shown below but they're getting skipped.The text was updated successfully, but these errors were encountered: