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 request] Allow dbt-osmosis yaml to skip sources #178

Open
FrankTub opened this issue Sep 19, 2024 · 0 comments
Open

[Feature request] Allow dbt-osmosis yaml to skip sources #178

FrankTub opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FrankTub
Copy link

We love dbt-osmosis and often use something like dbt-osmosis yaml document. We also use this as a pre-commit hook where we can exclude files that are not relevant to document. That looks something like:

- repo: https://github.com/z3z1ma/dbt-osmosis
  rev: v0.13.2
  hooks:
    - id: dbt-osmosis
      files: ^models/((?!.*sources.*).)*$
      additional_dependencies: ['dbt-core==1.8.6', 'dbt-postgres==1.8.2']

This does not modify our sources.yml. I was looking into options to skip the sources.yml file on the command line (without having to call pre-commit) but could not find one. We want to skip adding the columns in this file since we don't feel the need to specify a documentation for each column (specifically those that we don't use) of our source and could introduce merge conflicts etc.

What would be great if there was some sort of flag for all command line utilities under dbt-osmosis yaml that we could use to skip a specific file or simply skip sources.

So something like:

dbt-osmosis yaml document --skip-sources
@z3z1ma z3z1ma self-assigned this Nov 15, 2024
@z3z1ma z3z1ma added the enhancement New feature or request label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants