All documentation can be found on dbt-bouncer
documentation website.
-
Install
dbt-bouncer
:pip install dbt-bouncer
-
dbt-bouncer
requires amanifest.json
file. If not already present, run:dbt parse
-
Create a
dbt-bouncer.yml
config file:manifest_checks: - name: check_model_directories include: ^models permitted_sub_directories: - intermediate - marts - staging - name: check_model_names include: ^models/staging model_name_pattern: ^stg_
-
Run
dbt-bouncer
:$ dbt-bouncer [...] Running checks... |################################| 20/20 Done. SUCCESS=19 WARN=0 ERROR=1 Failed checks: | Check name | Severity | Failure message | |--------------------------|----------|---------------------------------------------------------------------------------------| | check_model_directories: | error | AssertionError: `model` is located in `utilities`, this is not a valid sub-directory. |
- Want to report a bug or request a feature? Let us know and open an issue.
- Want to help us build
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.