Skip to content

Instantly share code, notes, and snippets.

View etiennejeanneaurevolve's full-sized avatar

Etienne J. etiennejeanneaurevolve

  • Revolve
View GitHub Profile
@etiennejeanneaurevolve
etiennejeanneaurevolve / gist:1ed387dc73c5d4cb53ab313049587d09
Created April 14, 2022 22:15
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