Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save etiennejeanneaurevolve/1ed387dc73c5d4cb53ab313049587d09 to your computer and use it in GitHub Desktop.
Save etiennejeanneaurevolve/1ed387dc73c5d4cb53ab313049587d09 to your computer and use it in GitHub Desktop.
Setup pre-commit-terraform on Windows 10
prerequisites:
- git and gitbash
- python 3.x
- install all prerequisites needed (see https://github.com/antonbabenko/pre-commit-terraform)
Ensure your PATH environment variable looks for bash.exe in "C:\Program Files\Git\bin" (the one present in C:\Windows\System32\bash.exe does not work with pre-commit.exe)
For checkov, you may need to also set your PYTHONPATH environment variable with the path to your python modules.
ex: C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\Lib\site-packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment