-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (52 loc) · 1.42 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (52 loc) · 1.42 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: destroyed-symlinks
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
- repo: local
hooks:
- id: prettier
name: prettier
language: node
additional_dependencies: [[email protected]]
entry: prettier --write --ignore-unknown
types: [text]
require_serial: false
files: \.(md|ya?ml)$
- repo: local
hooks:
- id: go-mod-tidy
name: go mod tidy
language: golang
entry: go mod tidy
pass_filenames: false
- id: go-generate
name: go generate
language: golang
entry: go generate ./...
pass_filenames: false
- id: go-fix
name: go fix
language: golang
entry: go fix ./...
pass_filenames: false
- repo: https://github.com/golangci/golangci-lint
rev: v2.12.2
hooks:
- id: golangci-lint-full