Skip to content

Commit

Permalink
pre-commit/yaml - exclude file for trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
commonism committed Oct 31, 2024
1 parent ef010bd commit 081a188
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ repos:
- id: pyupgrade
args: [--py39-plus, --keep-runtime-typing]

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args: ["-d", "{extends: relaxed, rules: {empty-lines: disable, line-length: {max: 1500}}}", --strict, --format, parsable]

- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--mapping, '2', --sequence, '4', --offset, '2', --preserve-quotes, --implicit_start, --width, '1500']
exclude: tests/fixtures/schema-enum.yaml



ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.ci hooks
Expand Down

0 comments on commit 081a188

Please sign in to comment.