feat(kb/lefthook): use remote config

This commit is contained in:
Michele Cereda
2024-04-24 14:00:46 +02:00
parent 8412f624d9
commit 89b7f4f3ef
2 changed files with 71 additions and 4 deletions

View File

@@ -37,10 +37,13 @@ lint:
# ini: &pyinilint # FIXME
# run: pyinilint 'file'
md: &markdownlint
glob: "*.md"
run: >- # '{all_files}' and {files} only include ones managed by git for some reason
files: >-
find . -type 'f'
\( -name '*.md' -or -name '*.markdown' \)
-not \( -path '*/node_modules/*' -or -path '*/venv/*' \)
run: >-
docker run --rm -v "$PWD:/workdir" 'ghcr.io/igorshubovych/markdownlint-cli:latest'
**.md
{files}
yaml: &yamllint
glob: "*.{yaml,yml}"
run: >-
@@ -87,7 +90,7 @@ pre-commit:
<<: *hadolint
run: hadolint {staged_files}
lint-md:
<<: *markdownlint
glob: '*.{markdown,md}'
run: >-
docker run --rm -v "$PWD:/workdir" 'ghcr.io/igorshubovych/markdownlint-cli:latest'
{staged_files}