Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add a log line for the dbt-loom version #56

Merged
merged 1 commit into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dbt_loom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from dbt_loom.config import dbtLoomConfig
from dbt_loom.manifests import ManifestLoader, ManifestNode

import importlib.metadata


def identify_node_subgraph(manifest) -> Dict[str, ManifestNode]:
"""
Expand Down Expand Up @@ -80,6 +82,11 @@ class dbtLoom(dbtPlugin):
"""

def __init__(self, project_name: str):
# Log the version of dbt-loom being intialized
fire_event(
Note(msg=f'Initializing dbt-loom={importlib.metadata.version("dbt-loom")}')
)

configuration_path = Path(
os.environ.get("DBT_LOOM_CONFIG", "dbt_loom.config.yml")
)
Expand Down
Loading