Fix version and test-count inconsistencies - #1
Merged
Conversation
- __init__.py: bump stale __version__ 0.1.2 -> 0.1.4 to match pyproject.toml - README: reconcile Trust-status banner "249 tests" -> "243 tests" to match the two body references and the actual offline gate count (243 passed, 6 live tests deselected; 243 + 6 = 249 was counting the deselected). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Wynelson94
added a commit
that referenced
this pull request
Jul 24, 2026
The stub-extraction guard (#3) shipped with README text reading "Since v0.1.5", while pyproject.toml and __init__.py still said 0.1.4 and the CHANGELOG carried the guard under [Unreleased]. That is the same version-drift class PR #1 was opened to fix, reintroduced in the same day. Bumps both manifests, promotes [Unreleased] to [0.1.5], and adds the link ref pointing at 32858dd. The rest of the [Unreleased] block (MIT LICENSE, CI gate, synthetic FP fixture, UA correction) also shipped after 0.1.4, so it moves under 0.1.5 with the guard rather than lingering as unreleased. No git tags exist in this repo, so CHANGELOG links continue to point at shipping commits. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Wynelson94
added a commit
that referenced
this pull request
Jul 24, 2026
Two maintenance items from the 2026-07-24 audit.
1. Actions bump. actions/checkout@v4 and actions/setup-python@v5 target
Node 20; runners now force them onto Node 24 and print a deprecation
warning on every run. v6 is the native pair. (longhand already runs
v6/v6 for the same reason.)
2. Consistency gate. Prose-vs-code drift has shipped here twice and both
times nothing but a manual read caught it:
PR #1 "Fix version and test-count inconsistencies"
PR #4 README said "Since v0.1.5" while pyproject and __init__ said
0.1.4 and the CHANGELOG had the change under [Unreleased]
scripts/check_consistency.py asserts, against pyproject as canonical:
__init__.__version__ agrees; CHANGELOG has a RELEASED section for that
version (the check that would have caught PR #4); and every "N tests"
claim in the README equals what pytest actually collects.
It found live drift on its first run: the README claimed 243 tests in
three places while the suite is 247 since the stub guard landed. Fixed
here.
Falsified in both directions before committing — corrupting the test
count, the version, and the CHANGELOG section each produce exit 1 with
the specific line; restoring produces exit 0.
Gate is now: ruff check src tests scripts && mypy && pytest &&
check_consistency.py. CONTRIBUTING and CI updated to match.
Co-authored-by: Claude Opus 4.8 (1M context) <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.
Two small documentation/metadata consistency fixes surfaced while writing an intro post.
Changes
src/tearsheet/__init__.py:__version__was stale at0.1.2; bumped to0.1.4to matchpyproject.toml(the canonical version).README.md: the Trust-status banner said249 testswhile two body references said243 tests. Reconciled the banner to 243, which is the actual offline gate count.Why 243
python -m pytest -qreports243 passed, 6 deselected(the 6 are live/playwright-marked tests).243 + 6 = 249, so the banner was counting the deselected live tests. The gate — and what the README should advertise — is 243.Verification
ruff check src tests— cleanmypy— Success, no issues in 16 source filespytest -q— 243 passed, 6 deselected🤖 Generated with Claude Code