dbt™️-checkpoint hooks
What is dbt™️-checkpoint?
dbt™️-checkpoint is a collection of pre-commit hooks specifically designed for dbt™️ projects. It helps maintain consistent standards and catch common issues in your dbt™️ models before they get committed to your repository.
Why use dbt™️-checkpoint?
Ensures consistent dbt™️ model standards
Catches common dbt™️ issues early
Validates your dbt™️ project structure
Only checks files that have changed
Makes code reviews easier by catching issues automatically
Setting dbt™️ project root
You can specify a dbt™️ project root directory for all hooks. This is particularly useful when your dbt™️ project is not located at the root of your repository but in a sub-directory of it.
Create a .dbt-checkpoint.yaml
in the root of your repository and add the config dbt-project-dir
.
This way, we will automatically look for the required manifest/catalog inside your my_dbt_project
project folder.
Hooks
dbt™️-checkpoint provides an extensive set of pre-commit hooks for dbt™️ projects.
Start with basic checks like model properties and tests, then gradually add more specific checks as your project grows and customize them to match your team's standards.
Most hooks require running dbt parse
first, so make sure your dbt™️ environment is properly set up.
Model checks
Script checks
Source checks
Macro checks
Modifiers
dbt™️ commands
dbt™️ checks
Last updated
Was this helpful?