From f481cd6f1c620a443d335a77da3c257974082ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljoscha=20P=C3=B6rtner?= Date: Fri, 1 Apr 2022 12:50:01 +0200 Subject: [PATCH 1/3] ci: lint all yaml files --- .github/workflows/yamllint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index 94b24ad..e3cd0e7 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -10,5 +10,5 @@ jobs: - name: 'Lint' uses: karancode/yamllint-github-action@master with: - yamllint_file_or_dir: 'clusters' - yamllint_strict: false \ No newline at end of file + yamllint_file_or_dir: '.' + yamllint_strict: false From 30fa4f4d0f32094f0bb2eaab6c309c205180eaef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljoscha=20P=C3=B6rtner?= Date: Fri, 1 Apr 2022 12:50:16 +0200 Subject: [PATCH 2/3] ci: add yamllint config --- .yamllint | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .yamllint diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..0da83a4 --- /dev/null +++ b/.yamllint @@ -0,0 +1,32 @@ +--- +yaml-files: + - '*.yaml' + - '*.yml' + - '.yamllint' +rules: + braces: + max-spaces-inside: 1 + brackets: enable + colons: enable + commas: enable + comments: + level: warning + comments-indentation: + level: warning + document-end: disable + document-start: + level: warning + empty-lines: enable + empty-values: disable + hyphens: enable + indentation: enable + key-duplicates: enable + key-ordering: disable + line-length: enable + new-line-at-end-of-file: enable + new-lines: enable + octal-values: disable + quoted-strings: disable + trailing-spaces: enable + truthy: + level: warning From 276dc2e3ecdbd7ede4385b9bc6f50a75f6f763d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljoscha=20P=C3=B6rtner?= Date: Fri, 1 Apr 2022 12:50:30 +0200 Subject: [PATCH 3/3] fix: yaml linting errors --- .github/workflows/spellcheck.yml | 6 +++--- .spellcheck.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 24e7ebc..bdac71c 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -1,9 +1,9 @@ name: Spellcheck on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] workflow_dispatch: jobs: check: @@ -11,4 +11,4 @@ jobs: steps: - uses: actions/checkout@v2 - uses: igsekor/pyspelling-any@v1.0.4 - name: Spellcheck \ No newline at end of file + name: Spellcheck diff --git a/.spellcheck.yaml b/.spellcheck.yaml index 1ba3344..43d1b12 100644 --- a/.spellcheck.yaml +++ b/.spellcheck.yaml @@ -9,4 +9,4 @@ matrix: - .wordlist.txt output: build/dictionary/readme.dic pipeline: - - pyspelling.filters.url: \ No newline at end of file + - pyspelling.filters.url: