From 4fcb552d7751458e272109ab429290d0223fb4dc Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 22 Jul 2025 00:57:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Add=20`yamllint`=20to=20pre-comm?= =?UTF-8?q?it=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 10 ++++++++++ .yamllint | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .yamllint diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a56d27..3a308f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,4 +54,14 @@ repos: - id: python-no-log-warn - id: rst-backticks +- repo: https://github.com/adrienverge/yamllint.git + rev: v1.37.1 + hooks: + - id: yamllint + types: + - file + - yaml + args: + - --strict + ... diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..3dde2ea --- /dev/null +++ b/.yamllint @@ -0,0 +1,20 @@ +--- + +extends: default + +rules: + indentation: + level: error + indent-sequences: false + quoted-strings: + required: only-when-needed + truthy: + allowed-values: + - >- + false + - >- + true + - >- # Allow "on" key name in GHA CI/CD workflow definitions + on + +...