mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Update Prometheus to v0.307.2 * Update otel collector * Update OTel collector
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
fail_fast: false
|
|
default_install_hook_types: [pre-commit, commit-msg]
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: fix-byte-order-marker
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
- repo: local
|
|
hooks:
|
|
- id: conventional-commit-msg-validation
|
|
name: commit message conventional validation
|
|
language: pygrep
|
|
entry: '^(?:fixup! )?(breaking|build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w `])+([\s\S]*)'
|
|
args: [--multiline, --negate]
|
|
stages: [commit-msg]
|
|
- id: commit-msg-needs-to-be-signed-off
|
|
name: commit message needs to be signed off
|
|
language: pygrep
|
|
entry: "^Signed-off-by:"
|
|
args: [--multiline, --negate]
|
|
stages: [commit-msg]
|
|
- id: gofmt
|
|
name: gofmt
|
|
description: Format files with gofmt.
|
|
entry: gofmt -l
|
|
language: golang
|
|
files: \.go$
|
|
args: []
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
rev: v8.28.0
|
|
hooks:
|
|
- id: gitleaks
|
|
- repo: https://github.com/golangci/golangci-lint
|
|
rev: v2.4.0
|
|
hooks:
|
|
- id: golangci-lint
|