From 3b3f8b119615ccdc4e954b8dc5030d7294dc96e0 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 12 Mar 2024 01:48:56 +1000 Subject: [PATCH] pre-commit: fix the arguments syntax https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#use-with-pre-commit https://yamllint.readthedocs.io/en/stable/integration.html#integration-with-pre-commit --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f4afe774c..eff947a88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -63,7 +63,7 @@ repos: - id: markdownlint name: Run markdownlint description: Checks the style of Markdown files - entry: markdownlint -c .github/linters/.markdown-lint.yml . + args: [--config=.github/linters/.markdown-lint.yml] types: [markdown] files: \.(md|mdown|markdown)$ - repo: https://github.com/tcort/markdown-link-check @@ -81,6 +81,6 @@ repos: - id: yamllint name: Run yamllint description: Check YAML files with yamllint - entry: yamllint --strict -c .github/linters/.yaml-lint.yml + args: [--strict, -c=.github/linters/.yaml-lint.yml] types: [yaml] files: \.(yaml|yml)$