refactor: implement legacy hookwrappers in terms of a modern hook"#546
Merged
RonnyPfannschmidt merged 18 commits intopytest-dev:mainfrom May 9, 2025
Merged
Conversation
cc5ef1d to
d249bd5
Compare
Member
Author
|
@nicoddemus ping - can you take a look |
Member
Author
|
failures unrelated as pytest dropped python3.8 on main |
ae3572d to
a3c8d56
Compare
nicoddemus
approved these changes
Jan 12, 2025
Member
nicoddemus
left a comment
There was a problem hiding this comment.
LGTM!
Sorry for the delay, seems like I missed the notifications for this one.
src/pluggy/_callers.py
Outdated
Member
There was a problem hiding this comment.
We call this "old-style" in the docs, perhaps:
Suggested change
| def run_legacy_hookwrapper( | |
| def run_old_style_hookwrapper( |
9376cb5 to
903653c
Compare
Member
Author
|
@nicoddemus the coverage seems bogous |
Raising a StopIteration in a generator triggers a RuntimeError. If the RuntimeError of a generator has the passed in StopIteration as cause resume with that StopIteration as normal exception instead of failing with the RuntimeError.
903653c to
25af101
Compare
a4e03dc to
d0ab361
Compare
16114aa to
d443764
Compare
Member
Author
|
@nicoddemus i took a rather brutal approach to coverage - please have another look |
Member
Author
|
@nicoddemus gentle ping |
Member
|
Sorry @RonnyPfannschmidt, I did not see the notification! 😓 I will review ASAP. |
Member
Author
|
It just was easter Chill and make sure you enjoy |
nicoddemus
approved these changes
Apr 22, 2025
Member
nicoddemus
left a comment
There was a problem hiding this comment.
Thanks @RonnyPfannschmidt for tackling this, and sorry again for the delay.
Member
Author
|
will merge after pass - release today? |
for more information, see https://pre-commit.ci
Member
|
Sounds great, thanks! |
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.
followup to #545
moves the implementation of legacy hooks into a new style hook
closes #573 due to code reorg