From: Andrew Grimberg Date: Wed, 5 May 2021 16:45:36 +0000 (-0700) Subject: CI: Enforce yamllint in pre-commit X-Git-Tag: v0.63.1~10 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F67613%2F2;p=releng%2Fglobal-jjb.git CI: Enforce yamllint in pre-commit Turn on yamllint enforcement via pre-commit. This affects both the CI system as well as developers that pre-commit configured in their environment (like they should) Change-Id: If1ad8619a181ea916bcadc9eaddc58207fbef720 Signed-off-by: Andrew Grimberg --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f634d60b..4ab5eb4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,11 @@ repos: hooks: - id: gitlint + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.26.1 + hooks: + - id: yamllint + - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 2.1.5 hooks: diff --git a/releasenotes/notes/enforce_yamllint-07eaacf1724e4620.yaml b/releasenotes/notes/enforce_yamllint-07eaacf1724e4620.yaml new file mode 100644 index 00000000..1c2e2d2c --- /dev/null +++ b/releasenotes/notes/enforce_yamllint-07eaacf1724e4620.yaml @@ -0,0 +1,6 @@ +--- +other: + - | + yamllint is now enforced on commits via pre-commit. This affects both CI as + well as developers that have pre-commit properly configured in their + environment.