-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
MNT: add linter for thread-unsafe C API uses #29371
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
Conversation
9320d2e
to
9f7b3fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, I think this is ready once you correct my suggestions below. Thanks again for pushing this through!
Awesome thanks for your help on this. It was fun to learn about this stuff. |
@rgommers would you mind giving this a look? I trust your opinion about adding new CI checks and you have context for the free-threading issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments. I only looked at CI and linter, not the C API usage.
3f1422a
to
bbd4e18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small nit on the latest version then I think this is ready.
Also @lvllvl for future reference, please don't force-push after people have already reviewed your code. It's much easier for a reviewer to understand what changed after a review if you add commits instead of amending.
All concerns raised in review have been addressed and Ralf asked me to merge once I thought things look good.
Thanks @lvllvl! |
* MNT: add extra lint - thread-unsafe C API lint * MNT: integrate ruff-lint with C-API-lint
Adding a linter to audit PRs.
This would lint out PRs that use problematic functions such as
PyList_GetItem
PyList_GET_ITEM
PyDict_GetItem
PyDict_getItemWithError
PyDict_Next
PyDict_GetItemString
_PyDict_GetItemStringWithError
Attempts to resolve #26159
Previous PR #28634 was closed accidentally.