Repository navigation
docs: README tour defines docs; test runs the published example verbatim - #64
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The README's "30-second tour" failed as pasted:
docswas 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, andtests/test_readme_tour.py, which extracts the first python block under## 30-second tourand 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
sqlglotinstalled);scripts/docs_check.py0 problems.Deliberately separate from the packaging work so it can merge immediately.
🤖 Generated with Claude Code