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

Support setting profiles-dir #25

Merged
merged 6 commits into from
Mar 1, 2023

Conversation

ConstantinoSchillebeeckx
Copy link
Contributor

@ConstantinoSchillebeeckx ConstantinoSchillebeeckx commented Feb 22, 2023

Description

Allows user to set --profiles-dir instead of needing to set the ENV DBT_PROFILES_DIR - setting this option is more flexible than the ENV because it can be done at the command line or as an INI option.

Checklist

  • I read the CONTRIBUTING guide and understand what's expected of me
  • I ran this code in development and it appears to resolve the stated issue
  • I added tests, or tests are not required/relevant for this PR
  • I added an entry to the CHANGELOG detailing the change of this PR

@JCZuurmond JCZuurmond self-requested a review February 26, 2023 17:29
@JCZuurmond JCZuurmond changed the title support setting profiles-dir Support setting profiles-dir Feb 26, 2023
Copy link
Collaborator

@JCZuurmond JCZuurmond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ConstantinoSchillebeeckx: Thank you for your PR, it looks very well done! I added some minor changes. Though, the CI is causing some problems:

  1. Could you rebase your branch on the main branch after fetching the changes? The isort pre-commit plugin caused problems, which are solved in the latest release.
  2. It looks like dbt requires a profile attribute to be set on the Args. This looks like a change done by dbt unrelated to your PR. However, since you are working on adding the profiles directory as a flag, maybe you could solve this in this PR?

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
src/pytest_dbt_core/fixtures.py Outdated Show resolved Hide resolved
src/pytest_dbt_core/fixtures.py Outdated Show resolved Hide resolved
@JCZuurmond
Copy link
Collaborator

@ConstantinoSchillebeeckx : I updated the testing matrix. It shows that the set-up fails since dbt 1.4.

@ConstantinoSchillebeeckx
Copy link
Contributor Author

@JCZuurmond could you kick CI off again please?

Copy link
Collaborator

@JCZuurmond JCZuurmond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added some comments to the tox bit

setup.cfg Outdated Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
Copy link
Collaborator

@JCZuurmond JCZuurmond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ConstantinoSchillebeeckx : LGTM! Thanks for your contribution. Will you merge the PR? I guess you can after resolving the last conversation.

src/pytest_dbt_core/fixtures.py Outdated Show resolved Hide resolved
@ConstantinoSchillebeeckx
Copy link
Contributor Author

@JCZuurmond branch protection or repo setup doesn't allow me to merge this - feel free to do it.

@JCZuurmond JCZuurmond merged commit e302ba8 into godatadriven:main Mar 1, 2023
@JCZuurmond JCZuurmond mentioned this pull request Mar 1, 2023
4 tasks
@JCZuurmond
Copy link
Collaborator

@ConstantinoSchillebeeckx : Your changes are available in the 0.2.0 release. Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants