Skip to content

Commit a609856

Browse files
committed
pre-commit/yaml - exclude file for trailing whitespace
1 parent d1318e1 commit a609856

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ repos:
4040
- id: pyupgrade
4141
args: [--py39-plus, --keep-runtime-typing]
4242

43+
- repo: https://github.com/adrienverge/yamllint.git
44+
rev: v1.35.1
45+
hooks:
46+
- id: yamllint
47+
args: ["-d", "{extends: relaxed, rules: {empty-lines: disable, line-length: {max: 1500}}}", --strict, --format, parsable]
48+
49+
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
50+
rev: 0.2.3
51+
hooks:
52+
- id: yamlfmt
53+
args: [--mapping, '2', --sequence, '4', --offset, '2', --preserve-quotes, --implicit_start, --width, '1500']
54+
exclude: tests/fixtures/schema-enum.yaml
55+
56+
57+
4358
ci:
4459
autofix_commit_msg: |
4560
[pre-commit.ci] auto fixes from pre-commit.ci hooks

0 commit comments

Comments
 (0)