Skip to content

Python version errors when running dbt-autofix as a pre-commit hook #309

@Macaw-DJP

Description

@Macaw-DJP

When running dbt-autofix as a pre-commit hook errors are thrown

stderr:
    ERROR: Package 'dbt-autofix' requires a different Python: 3.14.2 not in '<3.14,>=3.10'

As a temporary fix, the version of Python can be specified as follows

- repo: https://github.com/dbt-labs/dbt-autofix
  rev: v0.18.6
  hooks:
      - id: dbt-autofix-fix
        language_version: python3.13

Metadata

Metadata

Assignees

No one assigned

    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