Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix minor issues in stubtest wrapper #28897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
timhoffm merged 2 commits into matplotlib:main from QuLogic:clearer-stubtest
Sep 29, 2024
Merged

Conversation

Copy link
Member

@QuLogic QuLogic commented Sep 27, 2024

PR summary

The stubtest allow list is technically composed of regex patterns, so ensure that entries are correctly escaped. Also, don't add an exception if it's already covered by our generic ones. This fixes the problem seen in #28874.

PR checklist

The list is full of regexs, not globs, so correctly escape the periods
to be more specific.
Note that to catch `module.__init__`, you need to specific `module`, so
there is some slight modification for `matplotlib.tests` /
`matplotlib.sphinxext`.
This fixes the "unused allowlist entry" error we see in matplotlib#28874.
Copy link
Member

The existing allowlist looks like it was written with fnmatch logic in mind. Would that be simpler/sufficient rather than using regexes?

Copy link
Member Author

QuLogic commented Sep 27, 2024

The allow list is defined by stubtest, and always was a regex. The old one worked since regex . matches literal . too, but places with .* were not exactly the same.

timhoffm reacted with thumbs up emoji

@timhoffm timhoffm merged commit 6404c95 into matplotlib:main Sep 29, 2024
39 of 43 checks passed
@timhoffm timhoffm added this to the v3.10.0 milestone Sep 29, 2024
@QuLogic QuLogic deleted the clearer-stubtest branch September 30, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ksunden ksunden ksunden approved these changes

@timhoffm timhoffm timhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.10.0
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /