{"id":18295971,"url":"https://github.com/petergrace/pre-commit-hooks","last_synced_at":"2025-04-09T08:42:08.095Z","repository":{"id":145479109,"uuid":"238459280","full_name":"PeterGrace/pre-commit-hooks","owner":"PeterGrace","description":"Pete's custom pre-commit hooks","archived":false,"fork":false,"pushed_at":"2020-06-23T19:51:28.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T02:44:36.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterGrace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-02-05T13:41:19.000Z","updated_at":"2020-06-23T19:51:30.000Z","dependencies_parsed_at":"2023-05-24T09:30:38.129Z","dependency_job_id":null,"html_url":"https://github.com/PeterGrace/pre-commit-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterGrace","download_url":"https://codeload.github.com/PeterGrace/pre-commit-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008388,"owners_count":21032553,"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":[],"created_at":"2024-11-05T14:38:59.032Z","updated_at":"2025-04-09T08:42:08.073Z","avatar_url":"https://github.com/PeterGrace.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-hooks\nRepository of pre-commit hooks I've created to help guard myself against dumb mistakes in commits.\n\n## how to use\nThis repository is meant to be referenced by the [pre-commit](https://pre-commit.com) helper app.\nAdd this to your `.pre-commit-config.yaml` file at the root of your repo, specifying the hooks you wish to use for the repository in question:\n```\n- repo: https://github.com/PeterGrace/pre-commit-hooks\n  rev: master\n  hooks:\n  - id: kustomize-build\n  - id: kustomize-missing\n  - id: \u003c...\u003e\n\n```\n\n\n## the hooks\n  - terraform-format -- runs `terraform fmt` on all terraform files in the repo, formatting them and syntax checking them.\n  - kustomize-build -- runs `kustomize build .` against a found kustomize manifest and ensures the files can actually create a legit manifest.\n  - kustomize-missing -- compares the found yaml manifests vs. the listed yamls in kustomize manifest to detect when there are discrepancies.\n    - if you intentionally want to not put a patched yaml in your kustomization.yaml file, add it to the file like `#ignore file.yaml` \n  - check-all-kustomize -- like kustomize-build, but iterates the entire git repo attempting to build all kustomize recipes.  Good for ensuring your changes don't clobber a different deployment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetergrace%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetergrace%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetergrace%2Fpre-commit-hooks/lists"}