diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d80b955c..b89d0df27 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,10 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - id: check-case-conflict +- repo: https://github.com/dbt-labs/pre-commit-hooks + rev: v0.1.0a1 + hooks: + - id: dbt-core-in-adapters-check - repo: https://github.com/psf/black rev: 23.1.0 hooks: diff --git a/tests/unit/test_snowflake_adapter.py b/tests/unit/test_snowflake_adapter.py index a9f8f3572..2666e7557 100644 --- a/tests/unit/test_snowflake_adapter.py +++ b/tests/unit/test_snowflake_adapter.py @@ -10,7 +10,7 @@ from dbt.adapters.snowflake.column import SnowflakeColumn from dbt.adapters.snowflake.connections import SnowflakeCredentials from dbt.contracts.files import FileHash -from dbt.context.manifest import generate_query_header_context +from dbt.context.query_header import generate_query_header_context from dbt.context.providers import generate_runtime_macro_context from dbt.contracts.graph.manifest import ManifestStateCheck from dbt_common.clients import agate_helper