From 17c05d38b1017cd7d4c39c5f42fe79277c97a297 Mon Sep 17 00:00:00 2001 From: Jamison French Date: Thu, 13 Aug 2026 15:49:03 -0500 Subject: [PATCH] chore: move markdownlint configuration --- .markdownlint-cli2.jsonc | 8 -------- .pre-commit-config.yaml | 16 +++++++++++----- pyproject.toml | 4 ++++ 3 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 .markdownlint-cli2.jsonc diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc deleted file mode 100644 index e5a00e2..0000000 --- a/.markdownlint-cli2.jsonc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "config": { - "MD013": false, // disable line length checks - "MD033": { - "allowed_elements": [ "a", "b", "details", "summary" ] - } - } -} \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0b309c..284a8e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,11 +6,6 @@ repos: - id: trailing-whitespace exclude: ^ingestion-data/.*$ - - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.23.2 - hooks: - - id: markdownlint-cli2 - - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.16.1 hooks: @@ -18,3 +13,14 @@ repos: args: [--fix] - id: ruff-format types_or: [python, pyi, jupyter, pyproject] + + - repo: https://github.com/DavidAnson/markdownlint-cli2 + rev: v0.23.2 + hooks: + - id: markdownlint-cli2 + args: + - "--fix" + - "--config" + - "pyproject.toml" + - "--configPointer" + - "/tool/markdownlint-cli2" diff --git a/pyproject.toml b/pyproject.toml index a3e2041..2b274c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,3 +47,7 @@ ignore = [ [tool.ruff.format] docstring-code-format = true docstring-code-line-length = "dynamic" + +[tool.markdownlint-cli2.config] +MD013 = false +MD033 = { allowed_elements = ["a", "b", "details", "summary"] }