Manifest Checks: Seeds#
Note
The below checks require manifest.json to be present.
Functions:
| Name | Description |
|---|---|
check_seed_column_names |
Seed columns must have names that match the supplied regex. |
check_seed_columns_have_types |
Columns defined for seeds must have a |
check_seed_description_populated |
Seeds must have a populated description. |
check_seed_has_unit_tests |
Seeds must have more than the specified number of unit tests. |
check_seed_names |
Seed must have a name that matches the supplied regex. |
check_seed_column_names
#
Seed columns must have names that match the supplied regex.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seed_column_name_pattern
|
str
|
Regexp the column name must match. |
required |
Receives at execution time:
| Name | Type | Description |
|---|---|---|
seed |
SeedNode
|
The SeedNode object to check. |
Other Parameters (passed via config file):
| Name | Type | Description |
|---|---|---|
description |
str | None
|
Description of what the check does and why it is implemented. |
exclude |
str | None
|
Regex pattern to match the seed path. Seed paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the seed path. Only seed paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):
manifest_checks:
- name: check_seed_column_names
seed_column_name_pattern: ^[a-z_]+$ # Lowercase with underscores only
Source code in src/dbt_bouncer/checks/manifest/check_seeds.py
check_seed_columns_have_types
#
Columns defined for seeds must have a data_type declared.
Receives at execution time:
| Name | Type | Description |
|---|---|---|
seed |
SeedNode
|
The SeedNode object to check. |
Other Parameters (passed via config file):
| Name | Type | Description |
|---|---|---|
description |
str | None
|
Description of what the check does and why it is implemented. |
exclude |
str | None
|
Regex pattern to match the seed path. Seed paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the seed path. Only seed paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):
Source code in src/dbt_bouncer/checks/manifest/check_seeds.py
check_seed_description_populated
#
Seeds must have a populated description.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
min_description_length
|
int | None
|
Minimum length required for the description to be considered populated. |
None
|
Receives at execution time:
| Name | Type | Description |
|---|---|---|
seed |
SeedNode
|
The SeedNode object to check. |
Other Parameters (passed via config file):
| Name | Type | Description |
|---|---|---|
description |
str | None
|
Description of what the check does and why it is implemented. |
exclude |
str | None
|
Regex pattern to match the seed path. Seed paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the seed path. Only seed paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):
manifest_checks:
- name: check_seed_description_populated
min_description_length: 25 # Setting a stricter requirement for description length
Source code in src/dbt_bouncer/checks/manifest/check_seeds.py
check_seed_has_unit_tests
#
Seeds must have more than the specified number of unit tests.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
min_number_of_unit_tests
|
int | None
|
The minimum number of unit tests that a seed must have. |
1
|
Receives at execution time:
| Name | Type | Description |
|---|---|---|
manifest_obj |
ManifestObject
|
The ManifestObject object parsed from |
seed |
SeedNode
|
The SeedNode object to check. |
unit_tests |
list[UnitTests]
|
List of UnitTests objects parsed from |
Other Parameters (passed via config file):
| Name | Type | Description |
|---|---|---|
description |
str | None
|
Description of what the check does and why it is implemented. |
exclude |
str | None
|
Regex pattern to match the seed path. Seed paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the seed path. Only seed paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Warning
This check is only supported for dbt 1.8.0 and above.
Example(s):
Source code in src/dbt_bouncer/checks/manifest/check_seeds.py
check_seed_names
#
Seed must have a name that matches the supplied regex.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seed_name_pattern
|
str
|
Regexp the seed name must match. |
required |
Receives at execution time:
| Name | Type | Description |
|---|---|---|
seed |
SeedNode
|
The SeedNode object to check. |
Other Parameters (passed via config file):
| Name | Type | Description |
|---|---|---|
description |
str | None
|
Description of what the check does and why it is implemented. |
exclude |
str | None
|
Regex pattern to match the seed path. Seed paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the seed path. Only seed paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):