From be0de7e3278f0c1479c87c579b3998d77ec9b7a8 Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Wed, 5 May 2021 09:45:36 -0700 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 5 +++++ releasenotes/notes/enforce_yamllint-07eaacf1724e4620.yaml | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 releasenotes/notes/enforce_yamllint-07eaacf1724e4620.yaml 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. -- 2.16.6