forked from ahgraber/AIMLbling-about
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
109 lines (108 loc) · 2.79 KB
/
.pre-commit-config.yaml
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
99
100
101
102
103
104
105
106
107
108
109
---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
- id: remove-tabs
- repo: https://github.com/sirosen/texthooks
rev: 0.6.6
hooks:
- id: fix-smartquotes
- id: fix-ligatures
- repo: local
hooks:
- id: forbid-yml
name: Forbid .yml file extensions (use .yaml)
entry: YAML file extension must be .yaml
language: fail
files: \.yml$
- repo: local
# repo: https://github.com/pre-commit/mirrors-prettier
# rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: ""
entry: prettier
language: system
args:
- --write
- --ignore-unknown
- --no-error-on-unmatched-pattern
# - "--ignore-path '**/*.md'"
# - "--ignore-path '**/*.y*ml'"
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.40.0
hooks:
- id: markdownlint
args:
- --config=.markdownlint.yaml
- --fix
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args:
- --config-file=.yamllint.yaml
- --format=parsable
- --strict
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.4.5"
hooks:
- id: ruff
args: [--fix]
stages: [commit, manual]
# - repo: https://github.com/hadolint/hadolint.git
# rev: v2.12.1-beta
# hooks:
# - id: hadolint-docker
# entry: hadolint/hadolint hadolint
- repo: https://github.com/petalmd/dockerfile-pre-commit
rev: v1.0
hooks:
- id: dockerlint
stages: [commit]
args:
- --ignore
- DL3025
- --ignore
- DL3018 # apk version pins
## shellcheck requires docker to run
# - repo: https://github.com/koalaman/shellcheck-precommit
# rev: v0.8.0
# hooks:
# - id: shellcheck
# args:
# - --severity=warning
# - -e
# - SC1071
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
args: ["-x"]
# ignore '*.zsh" scripts'
exclude: "^.*zsh$"
- repo: https://github.com/zricethezav/gitleaks
rev: v8.18.2
hooks:
- id: gitleaks
- repo: https://github.com/crate-ci/typos
rev: v1.21.0
hooks:
- id: typos
args: [--config, .typos.toml]
# exclude: "sops.yaml$"
exclude: |
(?x)^(
^.*(typos\.toml)$ |
^.*(\.sops\.yaml)$
)$