From 454ce0c3a519b6a9472f7cac982f8eccae82bb73 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 30 Nov 2021 19:45:17 +0000 Subject: [PATCH] Add a yamllint check for workflows --- .github/workflows/build.yml | 1 + .yamllint | 6 ++++++ MANIFEST.in | 1 + tox.ini | 5 +++++ 4 files changed, 13 insertions(+) create mode 100644 .yamllint diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1425d20..994faefe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,6 +123,7 @@ jobs: - flake8 - check-manifest - check-python-versions + - yamllint steps: - name: Git clone diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..7424caad --- /dev/null +++ b/.yamllint @@ -0,0 +1,6 @@ +extends: default + +rules: + document-start: disable + line-length: disable + truthy: {check-keys: false} diff --git a/MANIFEST.in b/MANIFEST.in index 67fa93c9..9572893e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -9,6 +9,7 @@ include Makefile include install-rpm.sh include .project include .pydevproject +include .yamllint recursive-include cgi-bin \ *.css \ diff --git a/tox.ini b/tox.ini index 228db80b..503687e1 100644 --- a/tox.ini +++ b/tox.ini @@ -37,3 +37,8 @@ commands = check-manifest {posargs} deps = check-python-versions skip_install = true commands = check-python-versions {posargs} + +[testenv:yamllint] +deps = yamllint +skip_install = true +commands = yamllint {posargs} -s .github/workflows/