Files
avivsinai__bitbucket-cli/.pre-commit-config.yaml
Eran Krakovsky 1122c36f64 test: remove test sleeps and retry backoff (#163)
* test: remove test sleeps and retry backoff

* test: add factory coverage

* test: add pr command coverage

* ci: add golangci-lint pre-commit hook
2026-04-14 19:40:55 +03:00

51 lines
1.5 KiB
YAML

# Pre-commit hooks configuration
# Install: brew install pre-commit
# Setup: pre-commit install
# Update hooks: pre-commit autoupdate
# Skip hooks: SKIP=gitleaks git commit -m "message"
repos:
# Gitleaks - Secret scanning
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
args: ['--config=.gitleaks.toml']
# Go linting - matches CI tool
- repo: local
hooks:
- id: golangci-lint
name: golangci-lint
entry: golangci-lint run --timeout 5m
language: system
pass_filenames: false
files: ^(.*\.go|go\.mod|go\.sum)$
# Generated skill rules freshness check
- repo: local
hooks:
- id: check-generated-skill
name: Check generated skill rules are up-to-date
entry: ./scripts/check-generated-skill.sh
language: script
pass_filenames: false
files: ^(pkg/cmd/|cmd/docgen/|internal/docgen/|skills/bkt/|Makefile|scripts/check-generated-skill\.sh)
# General file checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-merge-conflict
- id: check-case-conflict
- id: mixed-line-ending
args: [--fix=lf]
- id: detect-private-key