forked from truecharts/public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (48 loc) · 2.15 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
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-tabs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace # trims trailing whitespace.
exclude: ^archive/
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
exclude: ^archive/
- id: fix-byte-order-marker
exclude: ^archive/
- id: mixed-line-ending # replaces or checks mixed line ending.
exclude: ^archive/
- id: check-merge-conflict # checks for files that contain merge conflict strings.
exclude: ^archive/
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
exclude: ^archive/
- id: check-executables-have-shebangs # ensures that (non-binary) executables have a shebang.
exclude: (^archive/|^website\/public|^containers/)
- id: check-shebang-scripts-are-executable # ensures that (non-binary) files with a shebang are executable.
exclude: (^archive/|^website\/public|^containers/)
- id: check-docstring-first
exclude: ^archive/
- id: check-symlinks
exclude: ^archive/
- id: destroyed-symlinks
exclude: ^archive/
- id: fix-byte-order-marker # removes utf-8 byte order marker.
exclude: ^archive/
- id: requirements-txt-fixer # sorts entries in requirements.txt.
exclude: ^archive/
- id: check-added-large-files # prevents giant files from being committed.
exclude: \.(png|jpg|jpeg|svg|yaml|yml|tpl)$
- id: check-yaml # checks yaml files for parseable syntax.
exclude: (^archive|^website\/public|templates\/.*|crds\/.*|questions.yaml|chart_schema.yaml|common-test\/.*\.yaml|^clustertool)
- id: detect-private-key # detects the presence of private keys.
exclude: ^archive/
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: text-unicode-replacement-char
exclude: ^archive/
- id: rst-backticks
exclude: ^archive/