Skip to content

docs: README tour defines docs; test runs the published example verbatim - #64

Merged
arybach merged 2 commits into
mainfrom
readme-tour-docs-fix
Nov 17, 2026
Merged

arybach merged 2 commits into
mainfrom
readme-tour-docs-fix

Conversation

@arybach

@arybach arybach commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

The README's "30-second tour" failed as pasted: docs was used before it was defined (NameError). Found in the packaging audit of 2026-10-27 (a clean install from a clean clone).

Change (2 files, +1 line in the README and one new test): docs = [] immediately before its first use, and tests/test_readme_tour.py, which extracts the first python block under ## 30-second tour and executes it verbatim, offline, in a fresh namespace, asserting that the RUN, EXPLAIN and SIMULATE lines print. The test fails on the previous README (NameError: name 'docs' is not defined) and passes with the fix, so the README cannot drift from the API unnoticed.

Checks: suite 610 passed, 14 skipped (with sqlglot installed); scripts/docs_check.py 0 problems.

Deliberately separate from the packaging work so it can merge immediately.

🤖 Generated with Claude Code

Alex Mats and others added 2 commits October 27, 2026 19:48
…lock verbatim

The tour used docs before defining it (NameError when pasted). Adds docs = [] immediately before the first use and tests/test_readme_tour.py, which extracts the
first python block under '## 30-second tour' and executes it unchanged, offline. The test fails on the previous README with the NameError and passes now.
Suite 610 passed, 14 skipped (sqlglot installed); docs check 0 problems.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@arybach
arybach merged commit 21a7c24 into main Nov 17, 2026
9 of 10 checks passed
@arybach
arybach deleted the readme-tour-docs-fix branch November 17, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant