{"id":24481206,"url":"https://github.com/mrsimonemms/pre-commit-hooks","last_synced_at":"2026-01-03T03:03:35.649Z","repository":{"id":188560076,"uuid":"678978727","full_name":"mrsimonemms/pre-commit-hooks","owner":"mrsimonemms","description":"Reusable pre-commit hooks","archived":false,"fork":false,"pushed_at":"2025-02-16T19:44:35.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T22:51:58.627Z","etag":null,"topics":["continuous-integration","linting","pre-commit","pre-commit-hooks"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrsimonemms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-15T20:44:51.000Z","updated_at":"2025-02-16T19:41:22.000Z","dependencies_parsed_at":"2024-02-13T16:09:14.559Z","dependency_job_id":null,"html_url":"https://github.com/mrsimonemms/pre-commit-hooks","commit_stats":null,"previous_names":["mrsimonemms/pre-commit-hooks"],"tags_count":3,"template":false,"template_full_name":"mrsimonemms/new","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsimonemms%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsimonemms%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsimonemms%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsimonemms%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrsimonemms","download_url":"https://codeload.github.com/mrsimonemms/pre-commit-hooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243624103,"owners_count":20321029,"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":["continuous-integration","linting","pre-commit","pre-commit-hooks"],"created_at":"2025-01-21T11:19:50.929Z","updated_at":"2026-01-03T03:03:35.570Z","avatar_url":"https://github.com/mrsimonemms.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-hooks\n\nReusable pre-commit hooks\n\n\u003c!-- toc --\u003e\n\n* [Hooks](#hooks)\n  * [Go Err Check](#go-err-check)\n  * [Go Fumpt](#go-fumpt)\n  * [Go Fmt Import](#go-fmt-import)\n  * [Go Static Check](#go-static-check)\n  * [Go Vet](#go-vet)\n  * [License-Eye](#license-eye)\n  * [Packer Format](#packer-format)\n  * [Packer Validate](#packer-validate)\n* [Contributing](#contributing)\n  * [Open in a container](#open-in-a-container)\n\n\u003c!-- Regenerate with \"pre-commit run -a markdown-toc\" --\u003e\n\n\u003c!-- tocstop --\u003e\n\n## Hooks\n\n### Go Err Check\n\n\u003e Go-ified version of hook in [Bahjat's project](https://github.com/Bahjat/pre-commit-golang)\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: go-err-check\n```\n\nUse [kisielk/errcheck](https://github.com/kisielk/errcheck) to check that you\nchecked errors\n\n### Go Fumpt\n\n\u003e Go-ified version of hook in [Bahjat's project](https://github.com/Bahjat/pre-commit-golang)\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: gofumpt\n```\n\nUse [mvdan/gofumpt](https://github.com/mvdan/gofumpt) to check your Go formatting\n\n### Go Fmt Import\n\n\u003e Go-ified version of hook in [Bahjat's project](https://github.com/Bahjat/pre-commit-golang)\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: go-fmt-import\n```\n\nUse [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) to format\nyour import statementstps://github.com/mvdan/gofumpt) to check your Go formatting\n\n### Go Static Check\n\n\u003e Go-ified version of hook in [Bahjat's project](https://github.com/Bahjat/pre-commit-golang)\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: go-static-check\n```\n\nUse [staticcheck](https://staticcheck.dev) to lint your Go code\n\n### Go Vet\n\n\u003e Go-ified version of hook in [Bahjat's project](https://github.com/Bahjat/pre-commit-golang)\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: go-vet\n```\n\nUse [go vet](https://pkg.go.dev/cmd/vet) to check your Go code\n\n### License-Eye\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: license-eye\n```\n\nAdd [SkyWalking-Eyes](https://github.com/apache/skywalking-eyes) and check that\nthe files have the correct headers implemented.\n\n### Packer Format\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: packer-fmt\n```\n\nRun [Packer fmt](https://developer.hashicorp.com/packer/docs/commands/fmt)\ncommand.\n\n### Packer Validate\n\n```yaml\nrepos:\n  - repo: https://github.com/mrsimonemms/pre-commit-hooks\n    rev: \"\" # Use the ref you want to point at\n    hooks:\n      - id: packer-validate\n```\n\nRun [Packer validate](https://developer.hashicorp.com/packer/docs/commands/validate)\ncommand.\n\n## Contributing\n\n### Open in a container\n\n* [Open in a container](https://code.visualstudio.com/docs/devcontainers/containers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsimonemms%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrsimonemms%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsimonemms%2Fpre-commit-hooks/lists"}