CI: Enforce yamllint in pre-commit 13/67613/2
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 5 May 2021 16:45:36 +0000 (09:45 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 5 May 2021 17:46:30 +0000 (10:46 -0700)
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 <agrimberg@linuxfoundation.org>
.pre-commit-config.yaml
releasenotes/notes/enforce_yamllint-07eaacf1724e4620.yaml [new file with mode: 0644]

index f634d60..4ab5eb4 100644 (file)
@@ -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 (file)
index 0000000..1c2e2d2
--- /dev/null
@@ -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.