This is a collection of pre-commit hooks for Lightdash.
Add the following to your .pre-commit-config.yaml
file:
repos:
- repo: https://github.com/ubie-oss/lightdash-pre-commit-hooks
rev: <latest-version>
hooks:
- id: check-duplicate-dimensions-and-metrics-v1
This hook checks for duplicate dimensions and metrics in the dbt schema file for dbt 1.9 or earlier.
This hook checks for duplicate dimensions and metrics in the dbt schema file for dbt 1.10 or later.