Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/development-workflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Prefer existing fixtures and integration classes; do not build a parallel mock f
| SQLAlchemy dialect | Relevant PyAthena tests in `tests/pyathena/sqlalchemy/` plus `just test sqla`; also `tests/pyathena/aio/sqlalchemy/` and `just test sqla-async` for shared reflection or async paths. Both PyAthena directories are included in `just test pyathena`. |
| Filesystem | Affected S3 filesystem tests, including listing and path boundaries |
| Documentation | `just docs lint`; `just docs build` for rendered documentation changes |
| Agent skills | `just docs lint` and `mise exec -- markdownlint-cli2 '.agents/skills/**/*.md'`; inspect links and walk through realistic workflow scenarios |
| Agent skills | `just docs lint` and `mise exec -- rumdl check .agents/skills`; inspect links and walk through realistic workflow scenarios |
| Dependency, packaging, or CI configuration | Affected build/install checks and supported Python/dependency combinations from `pyproject.toml`, `uv.lock`, and CI |

The `tests/pyathena/` directory includes AWS integration tests despite the recipe's "unit tests" label.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
paths:
- 'docs/**'
- '**.md'
- '.markdownlint-cli2.jsonc'
- '.rumdl.toml'
- '.mise.toml'
- 'justfile'
- '.github/workflows/docs-lint.yaml'
Expand Down
44 changes: 0 additions & 44 deletions .markdownlint-cli2.jsonc

This file was deleted.

2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ python = "3.12"
just = "latest"
shellcheck = "0.11.0"
actionlint = "1.7.12"
"npm:markdownlint-cli2" = "0.18.1"
rumdl = "0.3.2"
82 changes: 82 additions & 0 deletions .rumdl.toml
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",

Copy link
Copy Markdown
Member Author

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, model gpt-6-astra, session 01a1abe5-152c-79f3-b80e-72061eaa38c1). Static review with read-only, cache-disabled rumdl check probes; given the repair diff a9ec6a35..dfbab738; no edits, builds, tests, or GitHub access.
Base d2c63f61bf19660395860056cd3f537261fbc698, head dfbab738.

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).

  • MD001 repair verified: front matter titles no longer affect the first body heading, and body heading-level skips are still detected. No side effects.
  • Front matter deferral judged reasonable: none of the 26 default files has front matter. The four skill files have front matter with only name/description keys.
  • P2: MD025 differs for documents without front matter (.rumdl.toml:25). With Preamble. followed by # Section one and # 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 = true does not resolve it.
  • No other result-changing default mismatch was found. MD044 code-blocks differs but is inactive with empty names.

Author disposition: reproduced; allow-document-sections and allow-with-separators both 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, so dfbab738 remains the reviewed head.

"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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent follow-up review (relayed): FINDINGS

Reviewer: Codex CLI 0.166.0 (codex exec -s read-only, model gpt-6-astra, session 01a1abd9-5fc4-7781-b81c-47a83008f2e4). Static review with read-only rumdl check probes; given the repair diff 07f826c9..a9ec6a35 and the earlier findings, without the PR text or self-review records; no edits, builds, tests, or GitHub access.
Base d2c63f61bf19660395860056cd3f537261fbc698, head a9ec6a35b4ff886e90a9b55c7c2f8c24220fe07e.

Covered: repair diff, previous configuration, installed markdownlint 0.38 source/schema, rumdl 0.3.2 effective configuration, file selection, MyST settings, comments. rumdl check --no-cache --deny-config-warnings passes all 26 files.

Result: the allowlist finding is resolved. enable selects exactly the 49 expected rules, and all eight added option assignments are valid and match markdownlint's defaults (including ignored_labels → ignore).

  1. P2: MD001's differing default remains unset (.rumdl.toml:58). rumdl defaults front-matter-title to true; markdownlint 0.38's MD001 considers only body headings. Front matter title: Example followed by ### First section gains an MD001 failure. [MD001] front-matter-title = false removes it.
  2. P3: MD025 default title matching is not equivalent (.rumdl.toml:58). markdownlint's default matcher recognizes quoted and case-varied title keys; rumdl 0.3.2 does not report MD025 for "title": Example or Title: Example followed by # Main heading. Copying markdownlint's regex into rumdl's front-matter-title did not restore detection.

Notes: MD044 code-blocks differs, but names = [] makes it inactive. File selection and MyST settings are unchanged by the repair.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repair: dfbab73

  • Finding 1 (fixed): reproduced with a probe (front matter title: Example + ### First section): rumdl reported MD001 and markdownlint-cli2 0.18.1 did not. Added [MD001] front-matter-title = false, after which rumdl reports nothing. just docs lint, just docs format (no diff), and just lint pass.
  • Finding 2 (deferred, documented): rumdl 0.3.2 has no option that reproduces markdownlint's MD025 title-key pattern (the reviewer found that copying the regex does not work). The difference only affects front matter with quoted or capitalized title keys, and none of the 26 linted files has front matter (checked the first line of each). The PR body now lists it as a known remaining difference instead of claiming full parity.

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 = ["//"]
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ uv run --env-file .env pytest -n 1 tests/pyathena/test_cursor.py -v

### Markdown Lint

`docs/**/*.md`, `benchmarks/*.md`, `scripts/**/*.md`, `cloudformation/**/*.md`, and project-root `*.md` files are linted with [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2). The config lives at `.markdownlint-cli2.jsonc`. CI runs lint + Sphinx build on PRs that touch docs (`.github/workflows/docs-lint.yaml`).
`docs/**/*.md`, `benchmarks/*.md`, `scripts/**/*.md`, `cloudformation/**/*.md`, and project-root `*.md` files are linted with [rumdl](https://github.com/rvben/rumdl). The config lives at `.rumdl.toml`. CI runs lint + Sphinx build on PRs that touch docs (`.github/workflows/docs-lint.yaml`).

`markdownlint-cli2` is pinned in `.mise.toml`, so [`mise`](https://mise.jdx.dev/) installs the exact version used in CI. Run locally:
`rumdl` is pinned in `.mise.toml`, so [`mise`](https://mise.jdx.dev/) installs the exact version used in CI. Run locally:

```bash
mise install # one-time: installs markdownlint-cli2
mise install # one-time: installs rumdl
just docs lint # check
just docs format # auto-fix what's possible
just docs build # build the Sphinx site under docs/_build/html
Expand Down
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review round one — implementation behavior: CLEAN

Base d2c63f61bf19660395860056cd3f537261fbc698, head 07f826c9c140da4ce484ea16f30fb75a97244d70.

Covered: .mise.toml, justfile recipes, .rumdl.toml (rules, include globs, MyST per-file flavor), removed .markdownlint-cli2.jsonc, docs-lint.yaml path filter, AGENTS.md, development-workflow skill.

Checks:

  • just docs format failure path: on a seeded file with one fixable (MD040) and one unfixable (MD033) issue, rumdl check --fix fixes the first and exits 1, so the recipe still fails like markdownlint-cli2 --fix when issues remain.
  • MD007 style = "fixed": a - sublist indented 3 spaces under an ordered item is not reported, matching markdownlint (which applies MD007 only to bullets nested in bullets).
  • File set and excluded build output: 26 files, docs/_build and the other old ignores are gitignored and rumdl respects .gitignore.
  • .rumdl_cache/ is created in the checkout but carries its own .gitignore, so it never shows as untracked.

Behavior difference recorded in the PR body: rumdl check --fix adds text to fences without a language (MD040), which markdownlint-cli2 does not auto-fix; repository files have none, so just docs format makes no change.

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
Expand Down
Loading