Skip to content

Allow to specify the version of terraform-docs for the hook to use #188

Open
@antonbabenko

Description

@antonbabenko

Currently, terraform_docs (and similar) hooks will use the version of terraform-docs installed on the system.

With each major release of the terraform-docs the output format changes and users need to regenerate the docs.

We need to be able to pin a specific version in the hook so that we have more control over README.md.

Proposal:

Sample:

repos:
  - repo: git://github.com/antonbabenko/pre-commit-terraform
    rev: v1.48.0
    hooks:
      - id: terraform_fmt
      - id: terraform_docs
        args: ['--version=0.12']

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions