Hi I am trying to run a pre-commit hook on all the files with .sql extension. I was wondering how can I do that. All those files with .sql are in the models/ directory, but I have sub-directories within that directory too (to group those sql files) so what is the best way to get all the files with .sql ending? . This is my .pre-commit-config.yml
file:
repos:
- repo: https://github.com/sqlfluff/sqlfluff
rev: 0.9.1
hooks:
- id: sqlfluff-fix
args:
[
--exclude-rules,
'L011,L031',
--dialect,
'clickhouse',
--templater,
'dbt',
--fix_even_unparsable,
'True',
]
files: '*.sql'
What should I assign to files: '*.sql':
^ instead of this
In the pre-commit documentation, I couldn't find an answer or in the sqlfluff documentation