Skip to content

[Feature] Add arguments to fix individual deprecations #324

@pempey

Description

@pempey

I would like the ability to target which deprications are fixed instead of all or nothing.

We have just migrated to dbt v1.11 and in that process we silenced all of the deprecation warnings. We did this so that we could better changed manage the almost 300 files that would need to be changed. We only have a few areas of deprications but it would make it easier to review if it was not all changes in all files.

For example if I could pass the name of the deprecation then I could better test that change in isolation to make sure that it has not broken out project.

for example

uvx --from git+https://github.com/dbt-labs/dbt-autofix.git dbt-autofix deprecations DuplicateYAMLKeysDeprecation

Our deprecation warnings

  warn_error_options:
    silence:
      - DeprecationsSummary
      - CustomKeyInConfigDeprecation # 6
      - CustomKeyInObjectDeprecation # 15
      - MissingPlusPrefixDeprecation # 43
      - PropertyMovedToConfigDeprecation # 1452
      - DuplicateYAMLKeysDeprecation # 1
      - MissingArgumentsPropertyInGenericTestDeprecation # 442

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions