Configure and enforce conventions for your dbt project.
Actively maintained. Last release 7 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install dbt-bouncerConfigure and enforce conventions for your dbt project.
Actively maintained. Last release 7 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install dbt-bouncerAll documentation can be found on dbt-bouncer documentation website.
dbt-bouncer aims to:
YAML or TOML.minimal, standard or strict config, with no config file to write. Run dbt-bouncer run --preset strict.dbt-bouncer baseline, or compare against a previous set of artifacts with dbt-bouncer run --state ./base-target.dbt-bouncer list, read one check in detail with dbt-bouncer explain check_model_names, or open the dashboard with dbt-bouncer studio.dbt-bouncer validate.dbt-bouncer mcp.csv, gitlab, json, junit, sarif or tap, and get distinct exit codes for check failures, config errors and artifact errors.run option in the config file, on the command line, or through a DBT_BOUNCER_* environment variable.See the CLI reference for all subcommands and options.
Install dbt-bouncer:
pip install dbt-bouncer
dbt-bouncer requires a manifest.json file. If not already present, run:
dbt parse
Create a dbt-bouncer.yml config file:
dbt-bouncer init
Run dbt-bouncer:
$ dbt-bouncer run
Running dbt-bouncer (X.X.X)...
Loaded config from dbt-bouncer.yml...
Validating conf...
Parsed artifacts for
'dbt_bouncer_test_project'
╭──────────────────┬─────────────────┬───────╮
│ Artifact │ Category │ Count │
├──────────────────┼─────────────────┼───────┤
│ manifest.json │ Exposures │ 2 │
│ │ Macros │ 3 │
│ │ Nodes │ 12 │
│ │ Seeds │ 3 │
│ │ Semantic Models │ 1 │
│ │ Snapshots │ 2 │
│ │ Sources │ 4 │
│ │ Tests │ 36 │
│ │ Unit Tests │ 3 │
│ catalog.json │ Nodes │ 13 │
│ │ Sources │ 0 │
│ run_results.json │ Results │ 51 │
╰──────────────────┴─────────────────┴───────╯
Assembled 463 checks, running...
Running checks... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
`dbt-bouncer` failed. Please see below for more details or run `dbt-bouncer` with the `-v` flag.
Failed checks
╭────────────────────────────────────┬────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Check name │ Severity │ Failure message │
├────────────────────────────────────┼────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ check_model_names:48:orders │ ERROR │ Models in the staging layer should always start with "stg_". - `orders` does not match the supplied regex `^stg_`. │
╰────────────────────────────────────┴────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Done. SUCCESS=462 WARN=0 ERROR=1
dbt-bouncer? Check out the Contributing Guide.Everyone interacting in dbt-bouncer's codebase, issue trackers, chat rooms, and mailing lists is expected to follow the Code of Conduct.
Use instead of dbt-bouncer: tools that do the same job, closest first.
Linter for dbt metadata.
Use together with dbt-bouncer: extensions, drivers, servers and companion tools.