Skip to content

Windows Support / Rewrite hooks to Python #648

Open
@ericfrederich

Description

@ericfrederich

What problem are you facing?

I cannot use pre-commit from Windows cmd.exe or PowerShell as it depends on bash. Only way is to use "Git Bash"

How could pre-commit-terraform help solve your problem?

I think the bash dependency should go away. Git is used on Windows outside of Git Bash all the time... either directly by developers using PowerShell or cmd.exe... or indirectly by other tools/IDEs, etc.

pre-commit itself is a Python script, so any environment where pre-commit is running necessarily already has Python available. I'd like to see those shell scripts converted to Python. It could use the subprocess module to invoke the Terraform binary.

I'm willing to do this work if you're open to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    estimate/1weekNeed 1 work week to be donefeatureNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions