Repository navigation
0.156.5: a check holds the package's promise; the two deprecations say since and 1.0 - #72
Merged
Merged
Conversation
…fter six months marked scripts/verify_promise.py reads src/onlyworlds/ with ast (never importing it) against scripts/public-names.json, which lists each public module's names, their deprecation marks (since, leaves) and the version they were read at. It fails when a deprecation mark does not say "Deprecated since X.Y.Z" and "onlyworlds 1.0" (a DeprecationWarning's text must also name its replacement), when a listed name is gone while the major is unchanged, when a public name is not listed, and, once the major has moved, when a removed name was not marked at least six months before. --write adds names and updates marks, and removes a name only when the major moved. Exit 2 when a file cannot be read, never a pass. The two existing marks now say so: resolve_calendar_lens (since 0.69.0) and the version key of KindLayout and AroundLayout (since 0.133.0) leave in onlyworlds 1.0. The check runs in the gates job and is listed in AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eave in onlyworlds 1.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was previously deployed
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.
scripts/verify_promise.py(in CI's gates job) reads each public module's names from the source againstscripts/public-names.jsonand fails when a name is gone within a major, a new one is unlisted (--writeadds it), a deprecation mark lacks its since or its leaving release, and, at a major, a name leaves under six months after its mark. Plants: a listed name deleted, an unlisted def, a mark without since, a warning without its release, a 1.0 that drops names too soon: each exit 1 with its own line; the real run exit 0 (40 modules, 620 names, 3 marks).resolve_calendar_lens(since 0.69.0) and the layout answers'versionkey (since 0.133.0) now say they leave in onlyworlds 1.0.🤖 Generated with Claude Code