Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## changelog-news-fragments #983 +/- ##
============================================================
+ Coverage 95.46% 95.50% +0.04%
============================================================
Files 134 134
Lines 26946 26960 +14
============================================================
+ Hits 25723 25749 +26
+ Misses 1223 1211 -12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
mcepl
force-pushed
the
test-691-remove-arg-colon-string
branch
from
November 30, 2026 08:23
334fde9 to
ec8eb9f
Compare
Nearly every pull request conflicted on the top of CHANGELOG.md,
because all of them appended to the same "Upcoming release"
section. Following a much simplified version of CPython's
blurb/NEWS.d workflow, each PR now adds a small Markdown file
changelog.d/<issue>.md with its entry, so parallel PRs never
touch the same file.
The new bin/news script (plain POSIX sh, so it works on Linux,
the BSDs and macOS) creates a fragment in $VISUAL/$EDITOR from a
template encouraging longer, explanatory entries (`bin/news 123`),
previews the pending release section (`bin/news preview`), and
folds the fragments, sorted by number, into a new "# Release
<version>" section of CHANGELOG.md (`bin/news collect`). A new
portable top-level Makefile wraps it as `make news N=123`,
`make changelog-preview`, `make changelog` and `make release`,
the last of which also builds the documentation via
docs/Makefile; that gains an explicit `html` rule, as its
Sphinx-generated catch-all pattern rule is GNU make only. The
news target passes N and TEXT to bin/news through the
environment ("$$N", "$$TEXT"), so Markdown backticks and quotes
in an entry reach the script literally instead of being
re-parsed by the shell.
The pending entry for the #223 regression tests, previously in
the "Upcoming release" section, has been moved to
changelog.d/223.md, and the PR template, contributing and
release-process docs updated.
mcepl
force-pushed
the
test-691-remove-arg-colon-string
branch
from
November 30, 2026 08:50
ec8eb9f to
e748b86
Compare
mcepl
force-pushed
the
test-691-remove-arg-colon-string
branch
2 times, most recently
from
November 30, 2026 08:55
11d645b to
7786e35
Compare
mcepl
changed the base branch from
changelog-news-fragments
to
757-inline-keyword-rename
November 30, 2026 08:55
In rope 1.8.0, removing a parameter with ChangeSignature mangled
call sites where another argument was a string containing a colon,
e.g. f(None, 'write into: {}'.format(x)) became f('write into).
The text-based Worder argument splitter truncated the argument at
the colon. This was fixed incidentally by b9a87dc, which replaced
the Worder-based call parser with an ast-based one (released in
1.13.0), but no test covered the case. Add one so the behaviour
cannot regress; it fails on 1.8.0 and passes on current master.
Fixes: #691
mcepl
force-pushed
the
757-inline-keyword-rename
branch
from
November 30, 2026 08:58
48c77dd to
a0fe1e6
Compare
mcepl
force-pushed
the
test-691-remove-arg-colon-string
branch
from
November 30, 2026 08:58
7786e35 to
8019137
Compare
mcepl
changed the base branch from
757-inline-keyword-rename
to
changelog-news-fragments
November 30, 2026 08:58
lieryan
previously approved these changes
Nov 30, 2026
This branch has not been 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.
In rope 1.8.0, removing a parameter with
ChangeSignaturebroke call sites where another argument was a string containing a colon:The text-based
Worderargument splitter cut the argument off at the colon. This was fixed as a side effect of b9a87dc ("Handle function parsing better, use ast parser instead of Worder", released in 1.13.0), but no test covered this case.This PR adds a regression test to
ropetest/refactor/change_signature_test.py. I checked it both ways: it fails on the1.8.0tag with the exact output from the issue, and it passes on currentmaster.Fixes #691