From 9e7d1e913714fb36eb610f5b84ee18339a450889 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sun, 30 Jun 2024 20:07:14 +0100 Subject: Add yamllint linter and supporting script --- .yamllint | 7 +++++++ bin/lint | 3 +++ requirements.txt | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 .yamllint create mode 100755 bin/lint diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..25e5d42 --- /dev/null +++ b/.yamllint @@ -0,0 +1,7 @@ +extends: default + +rules: + braces: + min-spaces-inside: 0 + max-spaces-inside: 1 + document-start: disable diff --git a/bin/lint b/bin/lint new file mode 100755 index 0000000..712c950 --- /dev/null +++ b/bin/lint @@ -0,0 +1,3 @@ +#! /usr/bin/env sh + +yamllint -s `find . -name '*.yml' -not -path '*.env*'` diff --git a/requirements.txt b/requirements.txt index f2dc778..37b32db 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,8 @@ cryptography==41.0.7 Jinja2==3.1.2 MarkupSafe==2.1.3 packaging==23.2 +pathspec==0.12.1 pycparser==2.21 PyYAML==6.0.1 resolvelib==1.0.1 +yamllint==1.35.1 -- cgit v1.2.3-70-g09d2