-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (64 loc) · 1.79 KB
/
.pre-commit-config.yaml
File metadata and controls
65 lines (64 loc) · 1.79 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types: [shell]
- id: shfmt
name: shfmt
entry: shfmt -w
language: system
types: [shell]
- id: nixpkgs-fmt
name: nixpkgs-fmt
entry: nixpkgs-fmt
language: system
types: [nix]
- id: yamllint
name: yamllint
entry: yamllint
language: system
types: [yaml]
args: [-d, "{extends: relaxed, rules: {line-length: disable}}"]
- id: markdownlint
name: markdownlint
entry: markdownlint --fix
language: system
types: [markdown]
exclude: ^CHANGELOG\.md$
- id: hadolint
name: hadolint
entry: hadolint
language: system
types: [dockerfile]
- id: actionlint
name: actionlint
entry: actionlint
language: system
files: ^\.github/workflows/.*\.ya?ml$
- id: validate-compose
name: validate-compose
entry: validate-compose
language: system
files: ^docker-compose\.ya?ml$
pass_filenames: true
- id: check-non-western
name: check-non-western
entry: check-non-western
language: system
types_or: [text, javascript, ts, python, yaml, json, markdown]
- id: check-relative-actions
name: check-relative-actions
entry: .github/scripts/check-relative-actions.sh
language: system
files: ^\.github/workflows/.*\.ya?ml$