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.5.0.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

dbt_bouncer-1.5.0-py3-none-any.whl (54.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbt_bouncer-1.5.0.tar.gz
  • Upload date:
  • Size: 40.3 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.5.0.tar.gz
Algorithm Hash digest
SHA256 e49ee77f0aefba5bb24198fca1351ff2be276c6489b4efa79cd84fc21ce5478c
MD5 dff8de5b293798af5eaa42a2884ad00c
BLAKE2b-256 542e2a7b848b0fca4f5f6262046a2bf5ac83eb0c7f80186a6b21ad72092bc9e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_bouncer-1.5.0.tar.gz:

Publisher: release_pipeline.yml on godatadriven/dbt-bouncer

Attestations:

File details

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

File metadata

  • Download URL: dbt_bouncer-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 54.1 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df9150415e9d26013eee9822501d9849302bec7a6080cf6e317f6517ad526ebb
MD5 32da535236be83adac4dcec7b8055fbf
BLAKE2b-256 f8d4d74ce4e2e25f14409a30cc822b07164d1f873c5e21d13480f5cd35856773

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_bouncer-1.5.0-py3-none-any.whl:

Publisher: release_pipeline.yml on godatadriven/dbt-bouncer

Attestations:

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