Squashed commits: [50e5c2165b] test (+1 squashed commits) Squashed commits: [9c8ca9bb81] tmp (+1 squashed commits) Squashed commits: [f86e9aedef] squashed work
61 lines
2.2 KiB
YAML
61 lines
2.2 KiB
YAML
# See https://pre-commit.com for more information
|
|
repos:
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
rev: v1.1.10
|
|
hooks:
|
|
- id: remove-tabs
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
# trims trailing whitespace.
|
|
- id: trailing-whitespace
|
|
# ensures that a file is either empty, or ends with one newline.
|
|
- id: end-of-file-fixer
|
|
- id: fix-byte-order-marker
|
|
# replaces or checks mixed line ending.
|
|
- id: mixed-line-ending
|
|
# checks for files that contain merge conflict strings.
|
|
- id: check-merge-conflict
|
|
# checks for files that would conflict in case-insensitive filesystems.
|
|
- id: check-case-conflict
|
|
# ensures that (non-binary) executables have a shebang.
|
|
- id: check-executables-have-shebangs
|
|
# ensures that (non-binary) files with a shebang are executable.
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-docstring-first
|
|
- id: check-symlinks
|
|
- id: destroyed-symlinks
|
|
# removes utf-8 byte order marker.
|
|
- id: fix-byte-order-marker
|
|
# sorts entries in requirements.txt.
|
|
- id: requirements-txt-fixer
|
|
# checks yaml files for parseable syntax.
|
|
- id: check-yaml
|
|
exclude: (templates\/.*|crds\/.*|questions.yaml|chart_schema.yaml)
|
|
# detects the presence of private keys.
|
|
- id: detect-private-key
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
rev: v1.9.0
|
|
hooks:
|
|
- id: text-unicode-replacement-char
|
|
- id: rst-backticks
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.5.1
|
|
hooks:
|
|
- id: prettier
|
|
exclude: (templates\/.*|crds\/.*|README.md|CHANGELOG.md|questions.yaml|devcontainer.json)
|
|
files: \.(js|ts|jsx|tsx|css|less|html|json|markdown|md|yaml|yml)$
|
|
|
|
# Update the rev variable with the release version that you want, from the yamllint repo
|
|
# You can pass your custom .yamllint with args attribute.
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
rev: v1.17.0
|
|
hooks:
|
|
- id: yamllint
|
|
exclude: (templates\/.*|crds\/.*|README.md|CHANGELOG.md|questions.yaml|devcontainer.json|chart_schema.yaml)
|
|
files: \.(yaml|yml)$
|
|
args: [-c=.github/lintconf.yaml]
|