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 + +...