-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (32 loc) · 880 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
35 lines (32 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Pre-commit hooks for git-this-bread.
#
# Install once per clone:
# pre-commit install
#
# Run on demand:
# pre-commit run --all-files
#
# Pinned versions match CI (.github/workflows/ci.yml).
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/golangci/golangci-lint
rev: v2.11.4
hooks:
- id: golangci-lint-full
# Run on the whole module, not just changed files — matches CI behavior
# and catches issues that span files (unused exports, etc.).
- repo: local
hooks:
- id: go-test
name: go test
entry: go test ./...
language: system
pass_filenames: false
types: [go]