Skip to main content

Configure and enforce conventions for your dbt project.

Project description

dbt-bouncer logo

dbt-bouncer

Configure and enforce conventions for your dbt project.


Documentation

All documentation can be found on dbt-bouncer documentation website.

TLDR

  1. Install dbt-bouncer:

    pip install dbt-bouncer
    
  2. 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_
    catalog_checks:
      - name: check_columns_are_documented_in_public_models
    run_results_checks:
      - name: check_run_results_max_execution_time
        max_execution_time_seconds: 60
    
  3. 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. |
    

Reporting bugs and contributing code

  • 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.

Code of Conduct

Everyone interacting in dbt-bouncer's codebase, issue trackers, chat rooms, and mailing lists is expected to follow the Code of Conduct.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbt_bouncer-1.4.0.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

dbt_bouncer-1.4.0-py3-none-any.whl (53.8 kB view details)

Uploaded Python 3

File details

Details for the file dbt_bouncer-1.4.0.tar.gz.

File metadata

  • Download URL: dbt_bouncer-1.4.0.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dbt_bouncer-1.4.0.tar.gz
Algorithm Hash digest
SHA256 a48d7e5dd28aa191e9e4ce3c95dc6835746ffc520c47d039657254953bf67030
MD5 ce54284a3e8ce8641288bf024d158463
BLAKE2b-256 36d98386fa2864539146275b5b09f86c3303217dbcf3c3a4353179dc2292636f

See more details on using hashes here.

File details

Details for the file dbt_bouncer-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: dbt_bouncer-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 53.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dbt_bouncer-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93e1c4ff88fba0b26e8e15e5f3802e2b0d70d8b1c884a2ff4b9e33f3eeb0b669
MD5 16cd6982836ca01bdddcb65677b01717
BLAKE2b-256 d00fef45b20f415163ec3788b1328c6a9667ceea69c19454a58bd955635f8ea4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page