-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove dbt-core dependency #81
Remove dbt-core dependency #81
Conversation
Co-authored-by: Matthieu Caneill <[email protected]>
Co-authored-by: Matthieu Caneill <[email protected]>
Co-authored-by: Matthieu Caneill <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment, PHAL, but preapproving anyways 👌
src/dbt_score/dbt_utils.py
Outdated
def dbt_required(func: Callable[..., Any]) -> Callable[..., Any]: | ||
"""Decorator for methods that require dbt to be installed.""" | ||
|
||
def inner() -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use https://docs.python.org/3/library/functools.html#functools.wraps
to preserve docstrings, names etc of the original function 👌
Get rid of the dependency
dbt-core
.In order to keep the number of dependencies as low as possible, to keep python environments small, get rid of the dbt-core dependency and add it to the dev dependencies. This is possible because
dbt-score
only needs amanifest.json
in order to run, althoughdbt-score
is able to rundbt parse
by itself.