From 1263f23970af5fa68cdd9644469b14832d125a65 Mon Sep 17 00:00:00 2001 From: NRK Date: Wed, 27 Jul 2022 08:57:50 +0200 Subject: [PATCH] [ci]: use `git ls-files` for spellchecking (#345) excluding the `.png` icons. this also fixes the wrong `.patch` and `.diff` extensions checks. no clue why we were trying to find `.patch` and `.diff` to begin with. i think i probably copy pasted the command i tested on nsxiv-extra repo or somewhere else without changing the extensions to `.c` and `.h`. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/345 --- .woodpecker/spell.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.woodpecker/spell.yml b/.woodpecker/spell.yml index 2c080ac..a184092 100644 --- a/.woodpecker/spell.yml +++ b/.woodpecker/spell.yml @@ -5,7 +5,5 @@ pipeline: spell-check: image: alpine:edge commands: | - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing py3-codespell >/dev/null - find . \( -name '*.patch' -o -name '*.diff' -o -name '*.md' \) -print | \ - xargs -I{} codespell {} - codespell nsxiv.1 config.mk Makefile + apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing py3-codespell git >/dev/null + git ls-files | sed '/\.png$/d' | xargs codespell