https://github.com/dirien/pre-commit-hooks
A collection of pre-commit-hooks
https://github.com/dirien/pre-commit-hooks
Last synced: over 1 year ago
JSON representation
A collection of pre-commit-hooks
- Host: GitHub
- URL: https://github.com/dirien/pre-commit-hooks
- Owner: dirien
- License: apache-2.0
- Created: 2021-07-16T18:43:56.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-16T19:57:59.000Z (almost 5 years ago)
- Last Synced: 2025-03-18T06:44:02.729Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pre-commit-hooks



This repository contains a collection of Git hooks to be used with the [pre-commit](https://pre-commit.com/) framework.
## Available Hooks ⚓
### Go
- `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.
## Usage ⚙
Create a `.pre-commit-config.yaml` inside your code repositories and add the hook.
```yaml
repos:
- repo: https://github.com/dirien/pre-commit-hooks
rev: # Check for the latest version: https://github.com/dirien/pre-commit-hooks/releases
hooks:
- id: golangci-lint
```
Once you created the configuration file inside your repository, you must run `pre-commit install` to activate the hook.
That's it, pre-commit will now check for changes and run the hook.