-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
98 lines (89 loc) · 3.13 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
98 lines (89 loc) · 3.13 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# _ _
# _ __ _ __ ___ ___ ___ _ __ ___ _ __ ___ (_) |_
# | '_ \| '__/ _ \_____ / __/ _ \| '_ ` _ \| '_ ` _ \| | __|
# _| |_) | | | __/_____| (_| (_) | | | | | | | | | | | | |_
# (_) .__/|_| \___| \___\___/|_| |_| |_|_| |_| |_|_|\__|
# |_|
#
# ...some basic sanity checks
# install these hooks by default, on "pre-commit install"
default_install_hook_types:
- pre-push
repos:
# ░█▀▀░█▀▀░█▀█░█▀▀░█▀▄░█▀█░█░░░░
# ░█░█░█▀▀░█░█░█▀▀░█▀▄░█▀█░█░░░░
# ░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░░
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: check-toml
- id: check-xml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.4
hooks:
# N.B. for a comprehensive list, see
# https://github.com/tekwizely/pre-commit-golang#installation
# - id: go-staticcheck-mod
- id: go-mod-tidy
- id: go-imports
args:
- -w
- repo: https://github.com/google/yamlfmt.git
rev: v0.21.0
hooks:
- id: yamlfmt
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
# use this in preference to "core" check-yaml as it won't explode on
# !references
- id: yamllint
# - repo: https://github.com/syntaqx/git-hooks
# rev: v0.0.18
# hooks:
# - id: forbid-binary
# - id: shellcheck
# - id: shfmt
# - repo: https://github.com/hadolint/hadolint
# rev: v2.12.1-beta
# hooks:
# - id: hadolint
# - repo: https://github.com/python-jsonschema/check-jsonschema
# rev: 0.30.0
# hooks:
# - id: check-gitlab-ci
# files: '^\.gitlab.ci.*\.yml$'
# - id: check-renovate
# ░█▀▀░█▀█░█▄█░█▀█░█░░░▀█▀░█▀█░█▀█░█▀▀░█▀▀░░
# ░█░░░█░█░█░█░█▀▀░█░░░░█░░█▀█░█░█░█░░░█▀▀░░
# ░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀▀▀░░
# - repo: https://github.com/ibm/detect-secrets.git
# rev: 0.13.1+ibm.61.dss
# hooks:
# # NOTE this is required for ITSS compliance
# - id: detect-secrets
# exclude: go.sum
# - repo: https://github.com/Lucas-C/pre-commit-hooks
# rev: v1.5.5
# hooks:
# - id: insert-license
# types: ['go']
# args:
# # - --comment-style='/*| *| */'
# - --comment-style=
# - --license-filepath=hack/boilerplate.go.txt