feat: implement linting and testing

This commit is contained in:
Stijnvandenbroek
2026-03-03 22:02:25 +00:00
parent 8dd6a7b890
commit fc43570506
16 changed files with 884 additions and 56 deletions

20
.sqlfluff Normal file
View File

@@ -0,0 +1,20 @@
[sqlfluff]
templater = jinja
dialect = postgres
max_line_length = 100
# Exclude generated/vendor paths
exclude_rules = RF05 # don't require quoted identifiers
output_line_length = 120
[sqlfluff:templater:jinja]
# Stub dbt macros so sqlfluff can lint without a live dbt project
[sqlfluff:templater:jinja:macros]
source = "{% macro source(source_name, table_name) %}{{ source_name }}.{{ table_name }}{% endmacro %}"
ref = "{% macro ref(model_name) %}{{ model_name }}{% endmacro %}"
[sqlfluff:indentation]
indent_unit = space
tab_space_size = 4
[sqlfluff:rules:layout.long_lines]
ignore_comment_lines = true