From 8772592fa28ab7b1d097b5dd095fca4f0dcf01c8 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 18 Feb 2024 22:34:34 +1000 Subject: [PATCH] pre-commit: add `markdown-link-check` config and ignore links https://github.com/tcort/markdown-link-check?tab=readme-ov-file#config-file-format --- .github/linters/mlc_config.json | 7 +++++++ .pre-commit-config.yaml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .github/linters/mlc_config.json diff --git a/.github/linters/mlc_config.json b/.github/linters/mlc_config.json new file mode 100644 index 000000000..ceda39d89 --- /dev/null +++ b/.github/linters/mlc_config.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "^https://github.com/mruby/mruby/commit/.*" + } + ] +} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f8b9c48e..db4d3a096 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -72,7 +72,7 @@ repos: - id: markdown-link-check name: Run markdown-link-check description: Checks hyperlinks in Markdown files - args: [-q] + args: [--config=.github/linters/mlc_config.json, -q] types: [markdown] files: \.(md|mdown|markdown)$ - repo: https://github.com/adrienverge/yamllint