{"id":19957011,"url":"https://github.com/anmolnagpal/git-hooks-terraform","last_synced_at":"2026-05-07T06:33:35.628Z","repository":{"id":94619017,"uuid":"178399138","full_name":"anmolnagpal/git-hooks-terraform","owner":"anmolnagpal","description":"pre-commit git hooks to take care of Terraform configurations","archived":false,"fork":false,"pushed_at":"2019-03-29T12:55:16.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T15:45:09.057Z","etag":null,"topics":["clouddrove","git","githook","github","hooks","terraform"],"latest_commit_sha":null,"homepage":"https://pre-commit.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anmolnagpal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-29T12:12:07.000Z","updated_at":"2020-04-23T17:57:47.000Z","dependencies_parsed_at":"2023-04-26T14:00:21.444Z","dependency_job_id":null,"html_url":"https://github.com/anmolnagpal/git-hooks-terraform","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/anmolnagpal/git-hooks-terraform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmolnagpal%2Fgit-hooks-terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmolnagpal%2Fgit-hooks-terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmolnagpal%2Fgit-hooks-terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmolnagpal%2Fgit-hooks-terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anmolnagpal","download_url":"https://codeload.github.com/anmolnagpal/git-hooks-terraform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmolnagpal%2Fgit-hooks-terraform/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260744214,"owners_count":23056109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clouddrove","git","githook","github","hooks","terraform"],"created_at":"2024-11-13T01:36:18.198Z","updated_at":"2026-05-07T06:33:30.596Z","avatar_url":"https://github.com/anmolnagpal.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    Git Hooks for terraform \n\u003c/h1\u003e\n\u003cp align=\"center\" style=\"font-size: 1.2rem;\"\u003e pre-commit hooks to keep Terraform configurations in a good shape ;) \u003c/p\u003e \n\n\u003chr /\u003e\n\n## Hooks available\n\n* `fmt` - Rewrites all Terraform configuration files to a canonical format.\n* `validate` - Validates all Terraform configuration files.\n\nEnjoy the clean and documented code!\n\n### 🔰Getting Started\n\u003e Follow the steps below to get started\n\n#### 🔨 Setting Up pre-commit\n\u003e install the pre-commit package\n\n- Using pip:\n```bash\npip install pre-commit\n```\n- Using homebrew:\n```bash\nbrew install pre-commit\n```\nStep into the repository you want to have the pre-commit hooks installed and run:\n```yaml\ncat \u003c\u003cEOF \u003e .pre-commit-config.yaml\n- repo: git://github.com/anmolnagpal/git-hooks-terraform\n  rev: v1.0.0 # Use the ref you want to point at\n  hooks:\n  - id: fmt\n  - id: validate      \n- repo: git://github.com/pre-commit/pre-commit-hooks\n  rev: v2.1.0 # Use the ref you want to point at\n  hooks:\n    - id: check-merge-conflict\nEOF\n```\nInstall the pre-commit hook\n```\npre-commit install\n```\nAfter pre-commit hook has been installed you can run it manually on all files in the repository\n```\npre-commit run -a\n```\n\n## 📚Refrence\n- https://github.com/pre-commit/pre-commit-hooks\n\n## 👬 Contribution\n- Open pull request with improvements\n- Discuss ideas in issues\n- Reach out with any feedback [![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/anmol_nagpal.svg?style=social\u0026label=Follow%20%40anmol_nagpal)](https://twitter.com/anmol_nagpal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmolnagpal%2Fgit-hooks-terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmolnagpal%2Fgit-hooks-terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmolnagpal%2Fgit-hooks-terraform/lists"}