{"id":16928112,"url":"https://github.com/dirien/pre-commit-hooks","last_synced_at":"2025-03-21T02:41:55.066Z","repository":{"id":48632040,"uuid":"386733315","full_name":"dirien/pre-commit-hooks","owner":"dirien","description":"A collection of pre-commit-hooks","archived":false,"fork":false,"pushed_at":"2021-07-16T19:57:59.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T06:44:02.729Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dirien.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}},"created_at":"2021-07-16T18:43:56.000Z","updated_at":"2022-04-26T04:51:32.000Z","dependencies_parsed_at":"2022-09-06T12:51:24.181Z","dependency_job_id":null,"html_url":"https://github.com/dirien/pre-commit-hooks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirien%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirien%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirien%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirien%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirien","download_url":"https://codeload.github.com/dirien/pre-commit-hooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244728194,"owners_count":20500023,"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-10-13T20:35:54.601Z","updated_at":"2025-03-21T02:41:55.042Z","avatar_url":"https://github.com/dirien.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-hooks\n\n![Go](https://img.shields.io/badge/go-00ADD8?style=for-the-badge\u0026logo=go\u0026logoColor=white)\n![pre-commit](https://img.shields.io/badge/pre--commit-FAB040?style=for-the-badge\u0026logo=pre-commit\u0026logoColor=white)\n![Git](https://img.shields.io/badge/git-F05032?style=for-the-badge\u0026logo=git\u0026logoColor=white)\n\nThis repository contains a collection of Git hooks to be used with the [pre-commit](https://pre-commit.com/) framework.\n\n## Available Hooks ⚓\n\n### Go\n\n- `golangci-lint`: golangci-lint is a fast Go linters runner. It runs linters in parallel, uses caching, supports yaml config, has integrations with all major IDE and has dozens of linters included.\n\n\n## Usage ⚙\nCreate a `.pre-commit-config.yaml` inside your code repositories and add the hook.\n\n```yaml\nrepos:\n  - repo: https://github.com/dirien/pre-commit-hooks\n    rev: \u003cVERSION\u003e # Check for the latest version: https://github.com/dirien/pre-commit-hooks/releases\n    hooks:\n      - id: golangci-lint\n```\n\nOnce you created the configuration file inside your repository, you must run `pre-commit install` to activate the hook. \n\nThat's it, pre-commit will now check for changes and run the hook.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirien%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirien%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirien%2Fpre-commit-hooks/lists"}