Repository navigation
Replace markdownlint-cli2 with rumdl for Markdown linting (GH-1352) #1360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| # Copyright 2026 The PyAthena authors | ||
| # | ||
| # Licensed under the MIT License. | ||
| # See LICENSE or https://opensource.org/licenses/MIT. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| # https://rumdl.dev/ | ||
|
|
||
| [global] | ||
| # A leading "/" anchors a pattern to the repository root; "*.md" alone would | ||
| # also match Markdown files in every subdirectory. | ||
| include = [ | ||
| "docs/**/*.md", | ||
| "benchmarks/*.md", | ||
| "scripts/**/*.md", | ||
| "cloudformation/**/*.md", | ||
| "/*.md", | ||
| ] | ||
| # Run the rule set of markdownlint 0.38 (used by markdownlint-cli2 0.18.1, | ||
| # the previous linter) instead of every rule rumdl enables by default. | ||
| enable = [ | ||
| "MD001", "MD003", "MD004", "MD005", "MD007", "MD009", "MD010", "MD011", | ||
| "MD012", "MD018", "MD019", "MD020", "MD021", "MD022", "MD023", "MD024", | ||
| "MD025", "MD026", "MD027", "MD028", "MD029", "MD030", "MD031", "MD032", | ||
| "MD033", "MD034", "MD035", "MD036", "MD037", "MD038", "MD039", "MD040", | ||
| "MD042", "MD043", "MD044", "MD045", "MD046", "MD047", "MD048", "MD049", | ||
| "MD050", "MD051", "MD052", "MD053", "MD054", "MD055", "MD056", "MD058", | ||
| "MD059", | ||
| # Not enabled: | ||
| # MD013: docs have long URLs and code lines that would be awkward to wrap | ||
| # MD014: `$ command` style is intentional in docs/testing.md and README shell snippets | ||
| # MD041: MyST `(label)=` ref targets must come before the first heading, so the | ||
| # first line of many docs/*.md files is not an H1 | ||
| ] | ||
|
|
||
| # Sphinx renders docs/ with MyST, so directive fences such as ```{toctree} | ||
| # are not code blocks without a language | ||
| [per-file-flavor] | ||
| "docs/**/*.md" = "myst" | ||
|
|
||
| # Match existing style: dash bullets, 2-space nested indent | ||
| [MD004] | ||
| style = "dash" | ||
|
|
||
| [MD007] | ||
| indent = 2 | ||
| style = "fixed" | ||
|
|
||
| # Cursor docs intentionally repeat subsection names ("Basic usage") under different cursors | ||
| [MD024] | ||
| siblings-only = true | ||
|
|
||
| # Allow inline HTML used by README (centered images) and MyST admonitions | ||
| [MD033] | ||
| allowed-elements = ["details", "summary", "br", "kbd", "sub", "sup", "div", "img", "p", "a"] | ||
|
|
||
| # Options whose rumdl defaults differ from markdownlint's | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Independent follow-up review (relayed): FINDINGS Reviewer: Codex CLI 0.166.0 ( Covered: repair diff, previous configuration, installed markdownlint 0.38 source/schema, rumdl 0.3.2 effective configuration, file selection, MyST settings, comments. Result: the allowlist finding is resolved.
Notes: MD044
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Repair: dfbab73
Self-review of the repair. Behavior: a one-option change to a rule that is already enabled; the file set and other rules are untouched. Claims: the PR body now names MD001 among the aligned options and states the MD025 limitation. |
||
| [MD001] | ||
| front-matter-title = false | ||
|
|
||
| [MD010] | ||
| code-blocks = true | ||
| spaces-per-tab = 1 | ||
|
|
||
| [MD026] | ||
| punctuation = ".,;:!。,;:!" | ||
|
|
||
| [MD027] | ||
| list-items = true | ||
|
|
||
| [MD036] | ||
| punctuation = ".,;:!?。,;:!?" | ||
|
|
||
| [MD051] | ||
| ignore-case = false | ||
|
|
||
| [MD052] | ||
| ignore = ["x"] | ||
|
|
||
| [MD053] | ||
| ignored-definitions = ["//"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,8 +69,8 @@ _docs-help: | |
| @echo "" | ||
| @echo "Targets:" | ||
| @echo " build Build the Sphinx documentation site (docs/_build/html)" | ||
| @echo " lint Lint Markdown with markdownlint-cli2" | ||
| @echo " format Auto-fix Markdown with markdownlint-cli2" | ||
| @echo " lint Lint Markdown with rumdl" | ||
| @echo " format Auto-fix Markdown with rumdl" | ||
|
|
||
| _docs-build: | ||
| uv run sphinx-multiversion docs docs/_build/html | ||
|
|
@@ -80,10 +80,10 @@ _docs-build: | |
| touch docs/_build/html/.nojekyll | ||
|
|
||
| _docs-lint: | ||
| mise exec -- markdownlint-cli2 | ||
| mise exec -- rumdl check | ||
|
|
||
| _docs-format: | ||
| mise exec -- markdownlint-cli2 --fix | ||
| mise exec -- rumdl check --fix | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Self-review round one — implementation behavior: CLEAN Base Covered: Checks:
Behavior difference recorded in the PR body: No tests are added: the change is tool configuration with no Python behavior; the Docs Lint workflow is the check. |
||
|
|
||
| # Benchmark workspace member with its own Python 3.12 environments: benchmarks/.venv | ||
| # with Polars 1.x, benchmarks/.venv-polars2 with Polars 2.x, and benchmarks/.venv-s3fs | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Independent follow-up review 2 (relayed): FINDINGS (deferred, documented)
Reviewer: Codex CLI 0.166.0 (
codex exec -s read-only, modelgpt-6-astra, session01a1abe5-152c-79f3-b80e-72061eaa38c1). Static review with read-only, cache-disabledrumdl checkprobes; given the repair diffa9ec6a35..dfbab738; no edits, builds, tests, or GitHub access.Base
d2c63f61bf19660395860056cd3f537261fbc698, headdfbab738.Covered: base-to-head and repair diffs; all 49 enabled-rule defaults against the local markdownlint 0.38 sources; the effective rumdl configuration; the default and skill lint scopes (26 + 4 files pass).
name/descriptionkeys..rumdl.toml:25). WithPreamble.followed by# Section oneand# Section two, markdownlint 0.38 does not report MD025 because prose precedes the first H1, while rumdl reports line 5, also under the MyST flavor.allow-document-sections = truedoes not resolve it.code-blocksdiffers but is inactive with emptynames.Author disposition: reproduced;
allow-document-sectionsandallow-with-separatorsboth still report it. Deferred: rumdl 0.3.2 has no option for this, rumdl is the stricter side, and no linted file triggers it. The PR body now lists it under the known remaining MD025 differences. No code change, sodfbab738remains the reviewed head.