35 lines
879 B
YAML
35 lines
879 B
YAML
|
|
# Pre-commit hooks configuration
|
||
|
|
# See https://pre-commit.com for more information
|
||
|
|
|
||
|
|
repos:
|
||
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||
|
|
rev: v4.5.0
|
||
|
|
hooks:
|
||
|
|
- id: trailing-whitespace
|
||
|
|
- id: end-of-file-fixer
|
||
|
|
- id: check-yaml
|
||
|
|
- id: check-json
|
||
|
|
- id: check-added-large-files
|
||
|
|
- id: check-merge-conflict
|
||
|
|
- id: check-case-conflict
|
||
|
|
- id: detect-private-key
|
||
|
|
|
||
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||
|
|
rev: v0.9.0.6
|
||
|
|
hooks:
|
||
|
|
- id: shellcheck
|
||
|
|
args: ['--severity=warning']
|
||
|
|
|
||
|
|
- repo: https://github.com/scop/pre-commit-shfmt
|
||
|
|
rev: v3.7.0-4
|
||
|
|
hooks:
|
||
|
|
- id: shfmt
|
||
|
|
args: ['-i', '4', '-ci', '-sr']
|
||
|
|
|
||
|
|
- repo: https://github.com/adrienverge/yamllint
|
||
|
|
rev: v1.33.0
|
||
|
|
hooks:
|
||
|
|
- id: yamllint
|
||
|
|
args: ['-d', '{extends: default, rules: {line-length: {max: 120}}}']
|
||
|
|
|