Skip to content

Commit bfd37fa

Browse files
committed
chore: Removed old flags
1 parent 303db39 commit bfd37fa

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

airflow_dbt_python/utils/configs.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,33 +177,34 @@ class BaseConfig:
177177
static: bool = False
178178
upgrade: bool = False
179179

180-
require_model_names_without_spaces: bool = False
181-
require_ref_searches_node_package_before_root: bool = False
182180
exclude_resource_types: list[str] = dataclasses.field(
183181
default_factory=list, repr=False
184182
)
185183

186-
# legacy behaviors - https://github.com/dbt-labs/dbt-core/blob/main/docs/guides/behavior-change-flags.md
184+
# Behavior change flags
185+
# See: https://docs.getdbt.com/reference/global-configs/behavior-changes#behavior-change-flags
186+
require_all_warnings_handled_by_warn_error: Optional[bool] = None
187187
require_batched_execution_for_custom_microbatch_strategy: Optional[bool] = None
188-
require_event_names_in_deprecations: Optional[bool] = None
189188
require_explicit_package_overrides_for_builtin_materializations: Optional[bool] = (
190189
None
191190
)
191+
require_generic_test_arguments_property: Optional[bool] = None
192+
require_nested_cumulative_type_params: Optional[bool] = None
193+
require_ref_searches_node_package_before_root: Optional[bool] = None
192194
require_resource_names_without_spaces: Optional[bool] = None
193-
source_freshness_run_project_hooks: Optional[bool] = None
195+
require_unique_project_resource_names: Optional[bool] = None
196+
require_valid_schema_from_generate_schema_name: Optional[bool] = None
197+
require_yaml_configuration_for_mf_time_spines: Optional[bool] = None
198+
restrict_direct_pg_catalog_access: Optional[bool] = None
194199
skip_nodes_if_on_run_start_fails: Optional[bool] = None
200+
source_freshness_run_project_hooks: Optional[bool] = None
195201
state_modified_compare_more_unrendered_values: Optional[bool] = None
196-
state_modified_compare_vars: Optional[bool] = None
197-
require_yaml_configuration_for_mf_time_spines: Optional[bool] = None
198-
require_nested_cumulative_type_params: Optional[bool] = None
199202
validate_macro_args: Optional[bool] = None
200-
require_all_warnings_handled_by_warn_error: Optional[bool] = None
201-
require_generic_test_arguments_property: Optional[bool] = None
202203

203204
def __post_init__(self):
204205
"""Post initialization actions for a dbt configuration."""
205206
self.vars = parse_yaml_args(self.vars)
206-
self.set_flags_from_dbt_project()
207+
self.set_flags_from_dbt_project_file()
207208
self.set_mutually_exclusive_attributes()
208209

209210
def set_mutually_exclusive_attributes(self):
@@ -260,7 +261,7 @@ def set_mutually_exclusive_attributes(self):
260261
else:
261262
setattr(self, attr, not negative_value)
262263

263-
def set_flags_from_dbt_project(self):
264+
def set_flags_from_dbt_project_file(self):
264265
"""Attempt to load configured flags from a project configuration file.
265266
266267
Dbt allows flags to be set in the configuration file. Since we create a project

0 commit comments

Comments
 (0)