-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
57 lines (57 loc) · 1.64 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
---
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: detect-private-key
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-merge-conflict
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
exclude: .*/keys/.*|.*/example-data/.*|
(
^package-lock.json$|
^Pipfile|
^pyproject.toml
)
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-tabs
- id: remove-crlf
- repo: https://github.com/mattlqx/pre-commit-search-and-replace
rev: v1.1.2
hooks:
- id: search-and-replace
stages: [commit-msg, commit]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
args: ["--verbose"]
verbose: true
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.87.2
hooks:
- id: cfn-python-lint
files: ^(?!\..*).*/template\.(json|yml|yaml)$
args: ["--ignore-checks", "W3045"]
- repo: https://github.com/bridgecrewio/checkov.git
rev: "3.2.92"
hooks:
- id: checkov
args: ["--framework", "cloudformation", "--quiet"]
files: ^(.*/)?template\.(yml|yaml)$
- repo: https://github.com/lovesegfault/beautysh
rev: "v6.2.1"
hooks:
- id: beautysh
language_version: "python3.11"