From 081a188023157373bbd29949265297ff973ca291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20K=C3=B6tter?= Date: Thu, 31 Oct 2024 06:34:59 +0100 Subject: [PATCH] pre-commit/yaml - exclude file for trailing whitespace --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6496b2eb..c420c157 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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