Run the published surface check, so the reference plugin shows the right way to do it #3
Labels
No labels
bug
documentation
enhancement
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Postulo/postulo-helloworld#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The surface it was waiting for landed in the core (postulo/postulo#229,
1d6cdd7e0):postulo.plugins.apinow carries the notifier contract, the records a sync works on, thecalls that write to a timeline, the details that hang off a contact, and the calendar text.
The core also publishes the check itself as
postulo.plugins.testing, so a plugin canassert the same thing about its own source that Postulo asserts about the ones it ships.
This plugin already imports nothing but
postulo.plugins.api, so there is nothing tomove. Its
tests/test_surface.pysays "Copy this file into your own plugin; the only lineto change is
PACKAGE" — and that advice is now wrong. The check is published; copying itis what this issue exists to stop.
This is the plugin people are told to copy, so the check it shows should be the one the
core maintains.
Also
1d6cdd7e0or later.Run the published check
Replace this repository's hand-written copy of the AST check with the core's:
One check rather than several near-copies that can drift apart, and it resolves relative
imports, which the copy here does not.