diff --git a/README.md b/README.md index 201bfac9..6074fbdf 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,12 @@ All documentation can be found on `dbt-bouncer` [documentation website](https:// pip install dbt-bouncer ``` +1. `dbt-bouncer` requires a `manifest.json` file. If not already present, run: + + ```shell + dbt parse + ``` + 1. Create a `dbt-bouncer.yml` config file: ```yml @@ -81,11 +87,6 @@ All documentation can be found on `dbt-bouncer` [documentation website](https:// - 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 ``` 1. Run `dbt-bouncer`: diff --git a/src/dbt_bouncer/config_file_validator.py b/src/dbt_bouncer/config_file_validator.py index 54106c39..dc726396 100644 --- a/src/dbt_bouncer/config_file_validator.py +++ b/src/dbt_bouncer/config_file_validator.py @@ -25,11 +25,6 @@ - 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 """ @@ -50,6 +45,7 @@ def conf_cls_factory( DbtBouncerConf: The configuration class. """ + check_categories = sorted(check_categories) if check_categories == ["catalog_checks"]: from dbt_bouncer.config_file_parser import DbtBouncerConfCatalogOnly diff --git a/tests/unit/test_config_file_validator.py b/tests/unit/test_config_file_validator.py index 68dda26b..9667be98 100644 --- a/tests/unit/test_config_file_validator.py +++ b/tests/unit/test_config_file_validator.py @@ -112,8 +112,6 @@ def test_load_config_file_contents_create_default_config_file( ) assert list(contents.keys()) == [ "manifest_checks", - "catalog_checks", - "run_results_checks", ]