-
Notifications
You must be signed in to change notification settings - Fork 55
Add stubtest to CI with allowlists #213
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
base: main
Are you sure you want to change the base?
Conversation
| Repository = "https://github.com/sbdchd/celery-types" | ||
|
|
||
| [dependency-groups] | ||
| dev = [ |
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.
These below are just alphabetically sorted now...
| [[ "${{ steps.stubtest-vine.outcome }}" == "failure" ]]; then | ||
| echo "One or more checks failed" | ||
| exit 1 | ||
| fi |
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.
The changes above make it a little bit easier to work with the CI. Instantly of failing fast one gets all the errors of the different checks at the end.
| celery.beat.ScheduleEntry.__le__ | ||
| celery.utils.timer2.Entry.__ge__ | ||
| celery.utils.timer2.Entry.__gt__ | ||
| celery.utils.timer2.Entry.__le__ |
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.
This and some of the other stuff in the ignore list can be removed with python 3.12+ or 3.14+, and I would move to python 3.14 soon-ish. But one after the other...
I suggest adding stubtest to the project to get more feedback in CI. This is not perfect, but overall pretty useful and commonly used by other type stub projects.
I will rebase this and mark as ready/not-draft once some other open PRs are taken care of.