Skip to content

Commit

Permalink
add dep on dbt_config & and update protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Oct 1, 2024
1 parent 10e6d59 commit 40fca93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbt/adapters/contracts/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
ValidatedStringMixin,
dbtClassMixin,
)
from dbt_config.external_config import ExternalCatalogConfig


# TODO: this is a very bad dependency - shared global state
from dbt_common.events.contextvars import get_node_info
Expand Down Expand Up @@ -226,3 +228,4 @@ class AdapterRequiredConfig(HasCredentials, Protocol):
cli_vars: Dict[str, Any]
target_path: str
log_cache_events: bool
catalogs = Optional[ExternalCatalogConfig]
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
]
dependencies = [
"dbt-common>=1.10,<2.0",
"dbt-config>=0.1,<1.0",
"pytz>=2015.7",
# installed via dbt-common but used directly
"agate>=1.0,<2.0",
Expand Down Expand Up @@ -54,6 +55,7 @@ include = ["dbt/adapters", "dbt/include", "dbt/__init__.py"]

[tool.hatch.envs.default]
dependencies = [
"dbt-config @ git+https://github.com/dbt-labs/dbt-common.git@feature/externalCatalogConfig#subdirectory=config",
"dbt_common @ git+https://github.com/dbt-labs/dbt-common.git",
'pre-commit==3.7.0;python_version>="3.9"',
'pre-commit==3.5.0;python_version=="3.8"',
Expand Down

0 comments on commit 40fca93

Please sign in to comment.