-
-
Notifications
You must be signed in to change notification settings - Fork 409
plugins: rule_lazy, find_lazy, and search_lazy #2037
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
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.
Oh look, it's me nitpicking documentation style again. 👀
Annoying that AppVeyor failed the checks even though it's not even active, but I think I fixed that once and for all now. Next push shouldn't trigger it.
dgw
left a comment
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.
Good to go. Squash out the fixups and that'll also get rid of the spurious failure ❌ in the PR's commit history. (Despite never being fully set up, AppVeyor was still getting PR notifications, which I believe is now correctly turned off.)
* plugin: add the rule_lazy decorator * loader: properly clean callable with lazy rule loaders * plugins.rules: new `*_lazy` classmethods to handle lazy rules * bot: call `from_callable_lazy` for lazy rules Also, I realized I could do some refactorization of how rule & URL callback are created, as they share more in common than I though. This will be reused later when find_lazy and search_lazy will be added. Note: I know, big commit, not a huge fan either. The next ones should be a bit shorter.
Co-authored-by: dgw <[email protected]>
Co-authored-by: dgw <[email protected]>
Co-authored-by: dgw <[email protected]>
256e716 to
08d0204
Compare
|
Rebased & squashed. |
Description
Following the same pattern as url/url_lazy, there is now 3 new decorators:
I saw 3 things:
sopel.plugins.rulesis way too big, a future PR will split that in different files (waiting on rules: fix deprecated usage of tools.compile_rule #2034 to be merged first)Checklist
make qa(runsmake qualityandmake test)