-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (48 loc) · 1.16 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
---
default_stages:
- commit
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: check-json
- id: pretty-format-json
args:
- --autofix
- id: check-xml
- id: check-added-large-files
args:
- --maxkb=1024
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- id: shfmt
args:
- -i
- '2'
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.13.0
hooks:
- id: yamlfix
entry: >
env YAMLFIX_SEQUENCE_STYLE="block_style"
YAMLFIX_LINE_LENGTH=100
YAMLFIX_SECTION_WHITELINES=1
YAMLFIX_quote_representation="\""
yamlfix
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
hooks:
- id: yamllint
args:
- -d
- '{extends: default, rules: {line-length: {max: 100}}}'