Skip to content

Commit fb6bbeb

Browse files
authored
Add pre-commit configuration (#2154)
1 parent 19e7e3e commit fb6bbeb

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.pre-commit-config.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
exclude: docs/_vendor/
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.3.0
7+
hooks:
8+
- id: trailing-whitespace
9+
- id: end-of-file-fixer
10+
- id: check-yaml
11+
args: [--allow-multiple-documents]
12+
- id: check-ast
13+
- id: check-added-large-files
14+
- id: check-merge-conflict
15+
- id: check-shebang-scripts-are-executable
16+
- id: mixed-line-ending
17+
args: [--fix=lf]
18+
- id: name-tests-test
19+
- id: no-commit-to-branch
20+
- id: requirements-txt-fixer
21+
- id: fix-byte-order-marker
22+
- repo: https://github.com/golangci/golangci-lint
23+
rev: v1.50.1
24+
hooks:
25+
- id: golangci-lint
26+
- repo: https://github.com/asottile/pyupgrade
27+
rev: v3.2.0
28+
hooks:
29+
- id: pyupgrade
30+
- repo: https://github.com/PyCQA/isort
31+
rev: 5.10.1
32+
hooks:
33+
- id: isort
34+
- repo: https://github.com/psf/black
35+
rev: 22.10.0
36+
hooks:
37+
- id: black
38+
- repo: https://github.com/python-jsonschema/check-jsonschema
39+
rev: 0.18.4
40+
hooks:
41+
- id: check-jsonschema
42+
name: "Check Helm Chart JSON Schema"
43+
files: deployments/helm-chart/values.yaml
44+
types: [yaml]
45+
args: ['--schemafile', 'deployments/helm-chart/values.schema.json']

0 commit comments

Comments
 (0)