Skip to content

xpd tables

Use xpd tables when you build, revise, or review presentation tables and data grids in Python (great-tables GT, pandas Styler, Plotly go.Table, Dash AG Grid) or JavaScript and TypeScript (ag-grid-react, ag-grid-community, Plotly table traces). It checks vertical rules, zebra striping, number formatting, decimal alignment, topical row grouping, raw headers, zero-versus-missing clarity, titles and source notes, spanners, totals, and cell padding against the 44 tabular principles in rules/xpd/present.yml. See the table review guide and table gallery.

Terminal window
xpd tables [OPTIONS] [PATHS]...
xpd tables <COMMAND>
Subcommand What it does
xpd tables start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd tables plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd tables approve Record that the user said yes to a fix that changes what callers or users see
xpd tables gate Gate a fix that is committed: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd tables drop Record that a fix was given up, after its files were restored
xpd tables status Print the run and the stage that comes next
xpd tables finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
Argument What it does
<PATHS>... Files or directories (directories respect .gitignore)
Option Default What it does
--kind <KIND> List only the findings of these kinds, separated by commas. Repeatable. Values: table-vertical-rules, table-zebra-striping, table-alphabetical-order, table-ungrouped-rows, table-unformatted-numbers, table-number-alignment, table-raw-header, table-missing-zero-ambiguity, table-missing-title, table-missing-source, table-flattened-heading-hierarchy, table-total-not-set-apart, table-cramped-cells, all-caps-text.
--limit <LIMIT> 20 The most findings to list of each kind, strongest first. 0 lists every finding.
--since <COMMIT> Count the findings at this commit too, and print each count beside the count of today.
--group-by <GROUP_BY> none Group findings and checklist items by owning module or shared cause. Values: none (Keep the default flat per-kind listing), module (Group findings and checklist items by owning module path), cause (Group related findings by shared kind and anchor files).
--packet <N> Emit one 1-indexed deterministic context-budgeted review packet for the Nth cluster.
--budget-lines <LINES> 300 Maximum source lines included across excerpts inside a --packet view.
--all-modules Include checklist review items for every surveyed module, not only modules with findings.
--format <FORMAT> Output format. Default: text on a terminal, json otherwise. Values: text, json.
--adapter <ADAPTER> A Python adapter file or shell command that emits rendered table specs for runtime checks.
--questions Print the inventory of table-review questions and runtime facts, with no file scan.
--book <BOOK> Filter questions and checklist items to principles citing these books (comma-separated keys of books in rules/xpd/present.yml, such as few,jenkinson) Repeatable.
--tier <TIER> Filter findings and checklist items to these Wilke severity tiers (comma-separated) Repeatable. Values: wrong (Mathematical or scale distortion that misstates the data), bad (Perceptual or clarity failure that impedes accurate decoding), ugly (Aesthetic or chrome flaw that leaves the data readable).
Terminal window
$ xpd tables --questions --format json | jq '{workflow, questions: (.questions | length), findings: (.findings | length)}'
{
"workflow": "tables",
"questions": 44,
"findings": 14
}
Exit code Meaning
0 Ledger printed or run stage succeeded
1 Gate rejected a change or finish blocked on open fixes, remaining findings, or unanswered checklist items