{"id":22338245,"url":"https://github.com/ipfans/pre-commit-hooks","last_synced_at":"2025-03-26T08:26:15.843Z","repository":{"id":145342416,"uuid":"349273015","full_name":"ipfans/pre-commit-hooks","owner":"ipfans","description":"A set hooks for pre-commit manager (https://pre-commit.com/)","archived":false,"fork":false,"pushed_at":"2022-02-02T09:25:55.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T10:11:25.883Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipfans.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":"2021-03-19T02:07:36.000Z","updated_at":"2023-03-04T07:43:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ce9f149-ea91-45f7-981e-b372f6a5a44c","html_url":"https://github.com/ipfans/pre-commit-hooks","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfans","download_url":"https://codeload.github.com/ipfans/pre-commit-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245617092,"owners_count":20644756,"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-12-04T06:13:34.060Z","updated_at":"2025-03-26T08:26:15.836Z","avatar_url":"https://github.com/ipfans.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-hooks\n\n`pre-commit-hooks` is self-managed repo for [pre-commit](https://pre-commit.com).\n\n## Requirement\n\n* Python 3\n* pre-commit\n\n### Dependencies (Optional with hooks)\n\n```\ngo install mvdan.cc/gofumpt@latest  # required by `go-fumpt`\ngo install golang.org/x/tools/cmd/goimports@latest  # required by `go-imports`\ngo install github.com/fzipp/gocyclo/cmd/gocyclo@latest  # required by `go-cyclo`\ngo install github.com/go-critic/go-critic/cmd/gocritic@latest  # required by `go-critic`\ngo install github.com/golangci/golangci-lint/cmd/golangci-lint@latest  # required by `golangci-lint`\n```\n\n## Usage\n\n### Setup\n\nWrite `.pre-commit-config.yaml`:\n\n```yaml\nrepos:\n  - repo: https://github.com/ipfans/pre-commit-hooks\n    rev: v0.3.0\n    hooks:\n      - id: go-fumpt\n      - id: go-imports\n      - id: go-vet\n      - id: go-cyclo\n        args: [-over=15]\n      - id: golangci-lint\n      - id: go-critic\n      - id: go-unit-tests\n      - id: go-build\n      - id: go-generate\n      - id: go-mod-tidy\n      - id: commit-msg-checker\n```\n\n### installation\n\n```\npre-commit install\npre-commit install --hook-type commit-msg  # Optional\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfans%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fpre-commit-hooks/lists"}