-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 2.22 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 2.22 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: v3.2.0
hooks:
- id: trailing-whitespace
exclude: ".*\\.t$|tezt/tests/expected|src/riscv/lib/tests/expected"
- id: end-of-file-fixer
exclude: "tezt/tests/expected|tezt/records|tzt_reference_test_suite|src/proto_[0-9][0-9][0-9]_.*/lib_protocol|src/proto_[0-9][0-9][0-9]_.*/parameters/dune|opam/"
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
args: [ "--external-sources" ]
- repo: https://github.com/google/go-jsonnet
rev: v0.20.0
hooks:
- id: jsonnet-format
- id: jsonnet-lint
name: jsonnet-lint
# Workaround for go-jsonnet linter panic (issue #544/#591):
# Lint files one at a time to avoid crashes when multiple files
# with shared imports are linted simultaneously.
require_serial: true
# The trailing '--' is consumed as $0 by bash -c, so $@ correctly
# receives all file arguments from pre-commit without skipping the first.
entry: bash -c 'for f in "$@"; do jsonnet-lint -J grafazos/vendor "$f" || exit 1; done' --
types: [jsonnet]
- repo: https://github.com/cisagov/pre-commit-shfmt
rev: v0.0.2
hooks:
- id: shfmt
# These settings must mirror the ones set in `scripts/lint.sh`.
args: [ "-i", "2", "-sr", "-d" ]
exclude: "docs/introduction/install-bin-deb.sh"
- repo: https://github.com/arenadotio/pre-commit-ocamlformat
rev: 0439858
hooks:
- id: ocamlformat
args: [ "-i" ]
- repo: https://github.com/hadolint/hadolint
rev: v2.9.3
hooks:
- id: hadolint-docker
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
hooks:
- id: check-gitlab-ci
args: ["--verbose"]
files: '(\.gitlab-ci\.yml|\.gitlab/ci/.*\.yml)'
- repo: local
hooks:
- id: check-gpg-signature
name: Check GPG signature configuration
entry: scripts/pre-commit-hooks/check-gpg-signature.sh
language: script
pass_filenames: false
always_run: true