diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-06-30 20:07:14 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-06-30 20:07:14 +0100 |
commit | 9e7d1e913714fb36eb610f5b84ee18339a450889 (patch) | |
tree | 9744faee37c670a2e4ef948ae7b54ce9550504ac | |
parent | 269ce7eab4482942d9c4793ed2dffae905c125af (diff) | |
download | infra-9e7d1e913714fb36eb610f5b84ee18339a450889.tar.gz infra-9e7d1e913714fb36eb610f5b84ee18339a450889.tar.bz2 infra-9e7d1e913714fb36eb610f5b84ee18339a450889.zip |
Add yamllint linter and supporting script
-rw-r--r-- | .yamllint | 7 | ||||
-rwxr-xr-x | bin/lint | 3 | ||||
-rw-r--r-- | requirements.txt | 2 |
3 files changed, 12 insertions, 0 deletions
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 |