-
Notifications
You must be signed in to change notification settings - Fork 18
/
.pre-commit-config.yaml
93 lines (84 loc) · 2.6 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
---
# spell-checker: disable
# See https://pre-commit.com for more information
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v5.0.0"
hooks:
- id: "trailing-whitespace"
- id: "end-of-file-fixer"
- id: "fix-byte-order-marker"
- id: "mixed-line-ending"
- id: "check-merge-conflict"
- id: "check-case-conflict"
- id: "check-json"
- id: "pretty-format-json"
args:
- "--autofix"
- "--no-sort-keys"
- repo: "https://github.com/Lucas-C/pre-commit-hooks"
rev: "v1.5.5"
hooks:
- id: "remove-crlf"
- id: "remove-tabs"
- repo: "https://github.com/jumanjihouse/pre-commit-hooks.git"
rev: "3.0.0"
hooks:
- id: "markdownlint"
language_version: "3.1.4"
args:
- "--ignore-front-matter"
- "docs/"
- repo: "https://github.com/streetsidesoftware/cspell-cli"
rev: "v8.16.1"
hooks:
- id: "cspell"
- repo: "https://github.com/gruntwork-io/pre-commit"
rev: "v0.1.24" # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
hooks:
- id: "helmlint"
- repo: "https://github.com/adrienverge/yamllint.git"
rev: "v1.35.1"
hooks:
- id: "yamllint"
args:
- "-c=.yamllint"
- "-s"
# - repo: "https://github.com/bridgecrewio/checkov.git"
# rev: "2.3.152"
# hooks:
# - id: "checkov"
# args:
# - "--directory"
# - "charts/nautobot"
# - "--skip-path"
# - "charts/nautobot/linter_values.*.yaml"
# - "--var-file"
# - "charts/nautobot/linter_values_minimum.yaml"
# - "--var-file"
# - "charts/nautobot/linter_values.yaml"
# - "--framework"
# - "helm"
# - "--output"
# - "cli"
# - "--output"
# - "sarif"
# - "--output-file-path"
# - "console,checkov.sarif"
- repo: "https://github.com/norwoodj/helm-docs"
rev: "v1.14.2"
hooks:
- id: "helm-docs"
args:
# Make the tool search for charts only under the `example-charts` directory
- "--chart-search-root=charts"
# The `./` makes it relative to the chart-search-root set above
- "--template-files=README.md.gotmpl"
- repo: "https://github.com/norwoodj/helm-docs"
rev: "v1.14.2"
hooks:
- id: "helm-docs"
args:
- "--chart-to-generate=charts/nautobot"
- "--template-files=./docs/configuration/reference.md.gotmpl"
- "--output-file=../../docs/configuration/reference.md"